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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Trass3r <[email protected]> 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: -------