mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +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
|
|
//
|