[Issue 1584] New: fail to alias super.memberfunc to current scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 16 05:46:39 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1584

           Summary: fail to alias super.memberfunc to current scope
           Product: D
           Version: 1.022
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: davidl at 126.com


interface C { void a(); } 
class A : C { void a() {} } 
class B : A, C { alias A.a a; }   // fails to compile

The semantic need here is I want a more restrictive interface.
The more restrictive interface enforces each subclass either implements 
the interface or explicitly alias it from super scope.


-- 



More information about the Digitalmars-d-bugs mailing list