[Issue 10513] New: pure overriding method cannot call impure out	contract of base class
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Jun 30 11:30:14 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=10513
           Summary: pure overriding method cannot call impure out contract
                    of base class
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: henning at still-hidden.de
--- Comment #0 from Henning Pohl <henning at still-hidden.de> 2013-06-30 11:30:14 PDT ---
class C {
    void foo() pure
    out { }
    body { }
}
class D : C {
    override void foo() pure
    { }
}
---
main.d(8): Error: pure function 'main.D.foo' cannot call impure function
'main.C.foo.__ensure'
---
-- 
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