Invalid Code errordomain FooError { FAIL } void main () { var e = new FooError.FAIL ("foo"); with (e) { } }