#panic; Minor change to demo.odin; Fix #assert bug at file scope
This commit is contained in:
1 parent
fa81061db0
commit
2a6d9e8927
10 files changed
+145
-122
No files matched your search
@@ -1091,7 +1091,7 @@ parse_stmt :: proc(p: ^Parser) -> ^ast.Stmt {
|
||||
case: error(p, stmt.pos, "#complete can only be applied to a switch statement");
|
||||
}
|
||||
return stmt;
|
||||
case "assert":
|
||||
case "assert", "panic":
|
||||
bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(tag));
|
||||
bd.tok = tok;
|
||||
bd.name = name;
|
||||
|
||||
Reference in new issue
Block a user