diff options
| author | Josh Wolfe <thejoshwolfe@gmail.com> | 2015-12-01 15:54:46 -0700 |
|---|---|---|
| committer | Josh Wolfe <thejoshwolfe@gmail.com> | 2015-12-01 15:54:46 -0700 |
| commit | 1ed926c3216016d73e83377a295869d8579e2fde (patch) | |
| tree | dfc72c0a73844cf440a83e8b67d6c16683c63c2c /test/run_tests.cpp | |
| parent | c6a9ab107bb383759f3627ed828ea2a779844f2b (diff) | |
| download | zig-1ed926c3216016d73e83377a295869d8579e2fde.tar.gz zig-1ed926c3216016d73e83377a295869d8579e2fde.zip | |
implicit void statements and all tests pass with type checking
Diffstat (limited to 'test/run_tests.cpp')
| -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 6b6d039f4c..334c35220b 100644 --- a/test/run_tests.cpp +++ b/test/run_tests.cpp @@ -209,11 +209,11 @@ fn a() {} add_compile_fail_case("unreachable with return", R"SOURCE( fn a() -> unreachable {return;} - )SOURCE", 1, ".tmp_source.zig:2:24: error: return statement in function with unreachable return type"); + )SOURCE", 1, ".tmp_source.zig:2:24: error: type mismatch. expected unreachable. got void"); add_compile_fail_case("control reaches end of non-void function", R"SOURCE( fn a() -> i32 {} - )SOURCE", 1, ".tmp_source.zig:2:1: error: control reaches end of non-void function"); + )SOURCE", 1, ".tmp_source.zig:2:15: error: type mismatch. expected i32. got void"); add_compile_fail_case("undefined function call", R"SOURCE( fn a() { |
