Bug 12152 – Cannot forward reference subclass member in superclass
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-13T08:43:00Z
Last change time
2015-06-17T21:01:47Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
samukha
Comments
Comment #0 by samukha — 2014-02-13T08:43:03Z
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