www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12621] New: [Reg]: covariance no longer checked for function


          Issue ID: 12621
           Summary: [Reg]: covariance no longer checked for function
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: bugzilla digitalmars.com

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

Apr 22 2014