mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
12 lines
166 B
Zig
12 lines
166 B
Zig
pub fn main() void {
|
|
const i: ?u64 = 0;
|
|
const result = i orelse 5;
|
|
assert(result == 0);
|
|
}
|
|
fn assert(b: bool) void {
|
|
if (!b) unreachable;
|
|
}
|
|
|
|
// run
|
|
//
|