move passing stage1 compile error tests to stage2
This commit is contained in:
committed by
Jakub Konka
parent
c248af3bdc
commit
3204d00a5e
11
test/cases/compile_errors/local_variable_redeclaration.zig
Normal file
11
test/cases/compile_errors/local_variable_redeclaration.zig
Normal file
@@ -0,0 +1,11 @@
|
||||
export fn f() void {
|
||||
const a : i32 = 0;
|
||||
var a = 0;
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// target=native
|
||||
//
|
||||
// :3:9: error: redeclaration of local constant 'a'
|
||||
// :2:11: note: previous declaration here
|
||||
Reference in New Issue
Block a user