From d92ae20f459c3ac491a0f5ef8aa42e8ac37634c8 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 9 May 2016 15:07:38 -0700 Subject: add hashmap to standard library closes #22 --- test/run_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/run_tests.cpp') diff --git a/test/run_tests.cpp b/test/run_tests.cpp index d927e743c8..c710c0325b 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -831,9 +831,9 @@ fn f() { add_compile_fail_case("missing else clause", R"SOURCE( -fn f() { - const x : i32 = if (true) { 1 }; - const y = if (true) { i32(1) }; +fn f(b: bool) { + const x : i32 = if (b) { 1 }; + const y = if (b) { i32(1) }; } )SOURCE", 2, ".tmp_source.zig:3:21: error: expected type 'i32', got 'void'", ".tmp_source.zig:4:15: error: incompatible types: 'i32' and 'void'"); -- cgit v1.2.3