www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3023] New: override keyword fail if iface has several super interfaces

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3023

           Summary: override keyword fail if iface has several super
                    interfaces
           Product: D
           Version: 1.044
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: larsivar igesund.net


dmd -c bah.d
-------------
interface A { void foo(); } 
interface AA { void foofoo(); }
interface B : A, AA { void bar(); } 
class C : B { 
    override void foo() {} 
    override void bar() {} 
    override void foofoo() {}
}

results in

bah.d(7): Error: function bah.C.foofoo does not override any function

Tested with DMD 1.045 (but that version isn't present in the dropdown).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 24 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3023


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE



My patch for bug 3381 fixes this. (reported later, but TDPL bugs get priority).

*** This issue has been marked as a duplicate of issue 3381 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 19 2009