http://d.puremagic.com/issues/show_bug.cgi?id=6259
Summary: Property getters returning ref const() cause setters to be hidden Product: D Version: unspecified Platform: Other OS/Version: Windows Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: lud...@informatik.uni-luebeck.de --- Comment #0 from S�nke Ludwig <lud...@informatik.uni-luebeck.de> 2011-07-06 12:41:23 PDT --- The following source will produce the following error on DMD 2.054beta: bug1.d(10): Error: s.prop is not mutable --- struct S { private int m_prop; ref const(int) prop() { return m_prop; } void prop(int v) { m_prop = v; } } void test() { S s; s.prop = 1; } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------