authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-01-07 14:27:38-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-01-07 14:27:38-05:00
log6b36aef3062d1cc2020e74ce4932da9be210108b
tree77cbe0a13103b987dfc90d727e4c90dc68c11e26
parent090ff05054756a1394712117515766bd96913e49

pass conflicting variable name test


1 files changed, 4 insertions(+), 4 deletions(-)

test/run_tests.cpp+4-4
......@@ -1001,10 +1001,10 @@ fn f(Foo: i32) {
10011001 var Bar : i32 = undefined;
10021002}
10031003 )SOURCE", 4,
1004 ".tmp_source.zig:5:6: error: redefinition of 'Foo'",
1005 ".tmp_source.zig:2:1: note: previous definition is here",
1006 ".tmp_source.zig:6:5: error: redefinition of 'Bar'",
1007 ".tmp_source.zig:3:1: note: previous definition is here");
1004 ".tmp_source.zig:5:6: error: redeclaration of variable 'Foo'",
1005 ".tmp_source.zig:2:1: note: previous declaration is here",
1006 ".tmp_source.zig:6:5: error: redeclaration of variable 'Bar'",
1007 ".tmp_source.zig:3:1: note: previous declaration is here");
10081008
10091009 add_compile_fail_case("multiple else prongs in a switch", R"SOURCE(
10101010fn f(x: u32) {