mirror of
https://github.com/ziglang/zig.git
synced 2026-01-05 21:13:24 +00:00
* MaybeWrap * TestErr * UnwrapErrCode * UnwrapErrPayload * ErrUnionTypeChild * ErrWrapCode * ErrWrapPayload
14 lines
185 B
Zig
14 lines
185 B
Zig
pub fn foo() -> %i32 {
|
|
const x = %return bar();
|
|
return x + 1
|
|
}
|
|
|
|
pub fn bar() -> %i32 {
|
|
return 13;
|
|
}
|
|
|
|
pub fn baz() -> %i32 {
|
|
const y = foo() %% 1234;
|
|
return y + 1;
|
|
}
|