zig/test/cases/optionals.2.zig

9 lines
84 B
Zig

pub fn main() u8 {
var x: ?u8 = 5;
_ = &x;
return x.? - 5;
}
// run
//