[Issue 6680] New: [TDPL] no error on ambiguous public final methods in interfaces
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 15 18:41:56 PDT 2011
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 at puremagic.com
ReportedBy: mrmocool at gmx.de
--- Comment #0 from Trass3r <mrmocool at 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: -------
More information about the Digitalmars-d-bugs
mailing list