digitalmars.D.bugs - [Issue 12152] New: Cannot forward reference subclass member in superclass
- d-bugmail puremagic.com (38/38) Feb 13 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12152
https://d.puremagic.com/issues/show_bug.cgi?id=12152 Summary: Cannot forward reference subclass member in superclass Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: samukha voliacable.com PST --- class A { alias B.X Y; } class B : A { alias int X; } ---- Error: no property 'X' for type 'bug.B' A different error if the declaration is shadowed: class A { alias B.X X; } class B : A { alias int X; } ---- Error: alias bug.A.X cannot resolve -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 13 2014