zig/test/cases/compile_errors/implicit_semicolon-while-continue_statement.zig
2022-06-30 09:57:38 +02:00

13 lines
218 B
Zig

export fn entry() void {
while(true):({}) {}
var good = {};
while(true):({}) ({})
var bad = {};
}
// error
// backend=stage2
// target=native
//
// :4:26: error: expected ';' or 'else' after statement