http://d.puremagic.com/issues/show_bug.cgi?id=3759
Summary: Implementing two interfaces with same final function is accepted Product: D Version: 2.040 Platform: x86_64 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: a...@esperanto.org.ar --- Comment #0 from Ary Borenszweig <a...@esperanto.org.ar> 2010-01-31 10:05:31 PST --- import std.stdio; interface One { final void foo() { writefln("One"); } } interface Two { final void foo() { writefln("Two"); } } class X : One, Two { } class Y : Two, One { } void main() { X x = new X(); x.foo(); // prints "One" Y y = new Y(); y.foo(); // prints "Two" } --- This might lead to bugs. I think this should be a compile-time error. I don't know how to solve this issue if you do want to implement both interfaces. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------