diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/run_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/run_tests.cpp b/test/run_tests.cpp index e7d696a34c..6f73d99648 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -1584,8 +1584,8 @@ fn f(Foo: i32) { ".tmp_source.zig:6:5: error: variable shadows type 'Bar'"); add_compile_fail_case("multiple else prongs in a switch", R"SOURCE( -fn f() { - const value: bool = switch (u32(111)) { +fn f(x: u32) { + const value: bool = switch (x) { 1234 => false, else => true, else => true, |
