Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
test
cases
compile_errors
implicit_semicolon-if_expression.zig
pretty
plain
permalink
blame
history
•
12 lines
•
191 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:20: error: expected ';' after statement