February 13, 2014 [Issue 12152] New: Cannot forward reference subclass member in superclass | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from Max Samukha <samukha@voliacable.com> 2014-02-13 08:43:03 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: ------- |
Copyright © 1999-2021 by the D Language Foundation