[Issue 9162] [tdpl] Non-static structs should have access to outer lexical scope
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 15 14:51:30 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9162
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> 2012-12-15 14:51:29 PST ---
This fails:
auto makeVoldemort(int x) {
struct Voldemort {
@property int value() { return x; }
}
return Voldemort();
}
This works:
auto makeVoldemort(int x) {
struct Voldemort {
int value() { return x; }
}
return Voldemort();
}
So it's a problem with @property.
--
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