[Issue 9978] New: Can override interface function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 22 09:13:18 PDT 2013
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: nobody at puremagic.com
ReportedBy: damianday at hotmail.co.uk
--- Comment #0 from Damian <damianday at hotmail.co.uk> 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: -------
More information about the Digitalmars-d-bugs
mailing list