http://d.puremagic.com/issues/show_bug.cgi?id=6842
Summary: Can't use alias of instance member Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: cbkbbej...@mailinator.com --- Comment #0 from Nick Sabalausky <cbkbbej...@mailinator.com> 2011-10-22 18:14:44 PDT --- -------------------------------- struct Foo { int a; } Foo foo; alias foo.a b; void main() { b = 5; // <-- Error } -------------------------------- >dmd test.d test.d(11): Error: need 'this' to access member a -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------