[Issue 6842] New: Can't use alias of instance member
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 22 18:15:46 PDT 2011
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: nobody at puremagic.com
ReportedBy: cbkbbejeap at mailinator.com
--- Comment #0 from Nick Sabalausky <cbkbbejeap at 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: -------
More information about the Digitalmars-d-bugs
mailing list