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

13 lines
192 B
Zig

export fn entry() void {
comptime {}
var good = {};
comptime ({})
var bad = {};
}
// error
// backend=stage2
// target=native
//
// :4:18: error: expected ';' after statement