Bug 6398 – Regression(2.054 beta): Property getter/setter confusion

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-07-29T05:00:00Z
Last change time
2012-01-29T02:49:25Z
Keywords
patch, wrong-code
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2011-07-29T05:00:11Z
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
Comment #1 by k.hara.pg — 2011-07-29T05:04:24Z
bug6259 is related issue.
Comment #2 by braddr — 2011-08-03T20:55:05Z
Comment #3 by braddr — 2011-08-03T20:56:23Z
*** Issue 6259 has been marked as a duplicate of this issue. ***
Comment #4 by yebblies — 2012-01-29T02:49:25Z