[Issue 502] New: reimplementing methods for interface

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 13 14:12:01 PST 2006


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

           Summary: reimplementing methods for interface
           Product: D
           Version: 0.173
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: benoit at tionex.de


http://www.digitalmars.com/d/interface.html
A reimplemented interface must implement all the interface functions, it does
not inherit them from a super class:

interface D{
    int foo();
}
class A : D{
    int foo() { return 1; }
}
class B : A, D{
    alias A.foo foo; // shouldn't this work for the reimplementation ???
}

in DMD 0.173 it doesn't.


-- 




More information about the Digitalmars-d-bugs mailing list