Summary: 'in' contract inheritance doesn't work with safe code
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Michel Fortin <> 2011-07-09 
22:00:30 EDT ---
This code yields an error about catching Throwable in safe code, yet no
throwable are caught (except maybe in compiler-generated code related to


class A {
    int test()
    in { assert(0); }
    body { return 1; }
class B : A {
    override int test() // Error: can only catch class objects derived from
Exception in @safe code, not 'object.Throwable'
    in { assert(0); }
    body { return 1; }

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to