Bug 12621 – [Reg]: covariance no longer checked for function overriding
Status
RESOLVED
Resolution
INVALID
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-04-22T23:48:00Z
Last change time
2014-04-29T14:56:12Z
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0 by bugzilla — 2014-04-22T23:48:50Z
class C15
{
void foo() pure;
void bar();
}
class D15 : C15
{
override void foo(); // should issue a covariant error
override void bar() pure; // not an error - pure can override impure
}
dmd used to diagnose this correctly. Same issue with nothrow and @safe attributes.