aboutsummaryrefslogtreecommitdiff
path: root/test/run_tests.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-05-09 15:07:38 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-05-09 15:07:38 -0700
commitd92ae20f459c3ac491a0f5ef8aa42e8ac37634c8 (patch)
tree178cba215ccb255b88bc7b1b487f1836f5f2f196 /test/run_tests.cpp
parentf1e5be96860406d7a4239b174c896799d8fd6545 (diff)
downloadzig-d92ae20f459c3ac491a0f5ef8aa42e8ac37634c8.tar.gz
zig-d92ae20f459c3ac491a0f5ef8aa42e8ac37634c8.zip
add hashmap to standard library
closes #22
Diffstat (limited to 'test/run_tests.cpp')
-rw-r--r--test/run_tests.cpp6
1 files changed, 3 insertions, 3 deletions
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'");