1 2 3 4 5 6 7 8 9 10 11
discard """ errormsg: "1 can't be converted to ErrorFoo" """ type Foo = enum Bar = 0.Foo ErrorFoo = enum eBar = 1.ErrorFoo