This commit is contained in:
gingerBill
2024-06-28 10:09:46 +01:00
parent 67e9a6fd9b
commit ec38215842
2 changed files with 6 additions and 3 deletions
+1
View File
@@ -346,6 +346,7 @@ gb_internal Scope *scope_of_node(Ast *node) {
gb_internal void check_open_scope(CheckerContext *c, Ast *node) {
node = unparen_expr(node);
GB_ASSERT(node != nullptr);
GB_ASSERT(node->kind == Ast_Invalid ||
is_ast_stmt(node) ||
is_ast_type(node));