[Issue 8631] New: illegal overrides accepted
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Sep 8 14:37:27 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8631
Summary: illegal overrides accepted
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: timon.gehr at gmx.ch
--- Comment #0 from timon.gehr at gmx.ch 2012-09-08 14:38:07 PDT ---
DMD 2.060:
class OVIC{
int foo()immutable{ return 2; }
int foo()const{ return 2; }
}
class OVIbICSC: OVIC{
override int foo()immutable{ return 2; }
override int foo()const shared{ return 2; }
override int foo()const{ return 2;}
}
The first two child methods override the same parent method, but DMD does not
detect this.
--
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