www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1584] New: fail to alias super.memberfunc to current scope

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: davidl 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.


-- 
Oct 16 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1584


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
             Status|NEW                         |RESOLVED
           Keywords|                            |spec
         Resolution|                            |DUPLICATE







*** This bug has been marked as a duplicate of 502 ***


-- 
Nov 08 2007