zig/test/cases/assert_function.6.zig

10 lines
127 B
Zig
Raw Normal View History

pub fn main() void {
const a: u32 = 2;
const b: ?u32 = a;
const c = b.?;
if (c != 2) unreachable;
}
// run
//