D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6680 - [TDPL] no error on ambiguous public final methods in interfaces
Summary: [TDPL] no error on ambiguous public final methods in interfaces
Status: RESOLVED DUPLICATE of issue 4647
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: diagnostic, rejects-valid
Depends on:
Blocks:
 
Reported: 2011-09-15 18:41 UTC by Trass3r
Modified: 2011-10-25 12:38 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 Trass3r 2011-09-15 18:41:35 UTC
import std.stdio;
interface A
{
    final void run() {writeln(0);}
}
interface B
{
    final void run() {writeln(1);}
}
class C : A, B
{
}

void main()
{
    auto t = new C;
    t.run();   // always calls the version of the interface listed first
    t.A.run(); // Error: no property 'A' for type 'test.C'
    t.B.run(); // Error: no property 'B' for type 'test.C'
}
Comment 1 Kasumi Hanazuki 2011-10-25 12:38:15 UTC

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