[Issue 6398] New: Regression(2.054 beta): Property getter/setter confusion
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 29 05:00:14 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6398
Summary: Regression(2.054 beta): Property getter/setter
confusion
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: wrong-code
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2011-07-29 05:00:11 PDT ---
This is regression of fixing bug3511.
static int value;
ref foo(){ printf("getter\n"); return value; }
ref foo(int x){ printf("setter\n"); value = x; return value; }
void main(){ foo = 1; } // Should print "setter", but print "getter" in 2.054
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list