You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
299 B
Zig
13 lines
299 B
Zig
4 years ago
|
const std = @import("std");
|
||
|
const print = std.debug.print;
|
||
|
|
||
|
const x: i32 = 1234;
|
||
|
|
||
|
pub fn main() void {
|
||
|
print("x: {}\n", .{x});
|
||
|
// confirmed, this program can't be built, so this guarantee is checked at
|
||
|
// compile-time, which is what I expected.
|
||
|
x += 1;
|
||
|
print("x: {}\n", .{x});
|
||
|
}
|