mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
13 lines
142 B
Zig
13 lines
142 B
Zig
pub fn main() u8 {
|
|
var x: ?u8 = null;
|
|
_ = &x;
|
|
var y: u8 = 0;
|
|
if (x) |val| {
|
|
y = val;
|
|
}
|
|
return y;
|
|
}
|
|
|
|
// run
|
|
//
|