1 2 3 4 5 6
discard """ errormsg: "Cannot inherit from: 'Foo'" line: 6 """ type Foo = object of ref Foo