digitalmars.D.bugs - [Issue 6680] New: [TDPL] no error on ambiguous public final methods in interfaces
- d-bugmail puremagic.com (37/37) Sep 15 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6680
- d-bugmail puremagic.com (12/12) Oct 25 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6680
http://d.puremagic.com/issues/show_bug.cgi?id=6680 Summary: [TDPL] no error on ambiguous public final methods in interfaces Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic, rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: mrmocool gmx.de --- Comment #0 from Trass3r <mrmocool gmx.de> 2011-09-15 18:41:35 PDT --- 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' } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 15 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6680 Kasumi Hanazuki <k.hanazuki gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |k.hanazuki gmail.com Resolution| |DUPLICATE --- Comment #1 from Kasumi Hanazuki <k.hanazuki gmail.com> 2011-10-25 12:38:15 PDT --- *** This issue has been marked as a duplicate of issue 4647 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 25 2011