D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3023 - override keyword fail if iface has several super interfaces
Summary: override keyword fail if iface has several super interfaces
Status: RESOLVED DUPLICATE of issue 3381
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2009-05-24 10:07 UTC by Lars Ivar Igesund
Modified: 2014-04-18 09:12 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Lars Ivar Igesund 2009-05-24 10:07:02 UTC
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).
Comment 1 Don 2009-10-19 12:15:37 UTC
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 ***