http://d.puremagic.com/issues/show_bug.cgi?id=9978
Summary: Can override interface function
Product: D
Version: D1 & D2
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Damian <[email protected]> 2013-04-22 09:13:17 PDT ---
interface I
{
void foo();
}
class A : I
{
public override void foo() { } // OK, but should be NG!!
public void foo() { } // OK
}
In this example the use of override is optional,
however since we are not overriding any function it should
be illegal to specify it as override.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------