Files
zig/test/cases/compile_errors/assign_to_constant_variable.zig
2022-06-30 09:57:38 +02:00

11 lines
141 B
Zig

export fn f() void {
const a = 3;
a = 4;
}
// error
// backend=stage2
// target=native
//
// :3:9: error: cannot assign to constant