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

9 lines
113 B
Zig

pub fn main() u8 {
var e: anyerror!u8 = error.Foo;
const i = e catch 10;
return i - 10;
}
// run
//