Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
implicit_semicolon-if_statement.zig
pretty
plain
permalink
blame
history
•
12 lines
•
194 B
1
export fn entry() void {
2
if(true) {}
3
var good = {};
4
if(true) ({})
5
var bad = {};
6
_ = good;
7
_ = bad;
8
}
9
10
// error
11
//
12
// :4:18: error: expected ';' or 'else' after statement