http://d.puremagic.com/issues/show_bug.cgi?id=9442
Summary: typeid() doesn't work without `this.` for class fields
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 2013-02-01
16:51:14 PST ---
class C
{
this()
{
auto x = typeid(c); // L5 NG
auto y = typeid(this.c); // ok
}
C c;
}
void main() { }
$ test.d(5): Error: need 'this' to access member c
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------