pass more tests

by removing assertion, fixing error column,
and updating expected message
This commit is contained in:
Andrew Kelley
2017-01-05 19:25:36 -05:00
parent 28403eaad0
commit 23feafdef0
3 changed files with 2 additions and 4 deletions

View File

@@ -963,7 +963,7 @@ fn f() {
fn f() {
if (const x ?= true) { }
}
)SOURCE", 1, ".tmp_source.zig:3:20: error: expected maybe type");
)SOURCE", 1, ".tmp_source.zig:3:20: error: expected nullable type, found 'bool'");
add_compile_fail_case("cast unreachable", R"SOURCE(
fn f() -> i32 {