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: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Max Samukha <[email protected]> 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: -------

Reply via email to