zig/test/cases/wasm-wasi/error_unions.3.zig

13 lines
135 B
Zig

pub fn main() u8 {
var e = foo();
const i = e catch 69;
return i - 5;
}
fn foo() anyerror!u8 {
return 5;
}
// run
//