Bug 6680 – [TDPL] no error on ambiguous public final methods in interfaces

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-09-15T18:41:00Z
Last change time
2011-10-25T12:38:15Z
Keywords
diagnostic, rejects-valid
Assigned to
nobody
Creator
hoganmeier

Comments

Comment #0 by hoganmeier — 2011-09-15T18:41:35Z
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 by k.hanazuki — 2011-10-25T12:38:15Z
*** This issue has been marked as a duplicate of issue 4647 ***