zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 6b36aef3062d1cc2020e74ce4932da9be210108b (tree)
parent 090ff05054756a1394712117515766bd96913e49
Author: Andrew Kelley <superjoe30@gmail.com>
Date:   Sat,  7 Jan 2017 14:27:38 -0500

pass conflicting variable name test

Diffstat:
Mtest/run_tests.cpp | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

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