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.

14 lines
193 B
Zig

const x = 1234;
fn foo() void {
// can const inside function scope
const y = 5678;
// this is prevented presumably at compile time
y += 1;
}
test "assignment" {
foo();
}