aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/assign_to_constant_variable.zig
blob: af6f33ec66525d572a2f9ac6e97e98cd8de1534c (plain)
1
2
3
4
5
6
7
8
9
10
export fn f() void {
    const a = 3;
    a = 4;
}

// error
// backend=stage2
// target=native
//
// :3:9: error: cannot assign to constant