zig/test/cases/compile_errors/implicit_semicolon-while-continue_statement.zig

13 lines
218 B
Zig
Raw Normal View History

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