17 lines
153 B
Plaintext
17 lines
153 B
Plaintext
// ERROR:13:type
|
|
unit baddefi;
|
|
|
|
error E {
|
|
Bad = 1,
|
|
}
|
|
|
|
fn leaf() -> E!i32 {
|
|
return E.Bad;
|
|
}
|
|
|
|
fn bad() -> i32 {
|
|
return leaf() catch false;
|
|
}
|
|
|
|
|