number literal rework

This commit is contained in:
Andrew Kelley
2016-01-21 03:02:25 -07:00
parent 5e212db29c
commit 32e2196257
11 changed files with 773 additions and 617 deletions

View File

@@ -1323,7 +1323,7 @@ fn f() i32 => {
fn f() => {
if (0) {}
}
)SOURCE", 1, ".tmp_source.zig:3:9: error: expected type 'bool', got '(u8 literal)'");
)SOURCE", 1, ".tmp_source.zig:3:9: error: value 0 cannot be represented in type 'bool'");
add_compile_fail_case("assign unreachable", R"SOURCE(
fn f() => {