Removing polymorph from test

This commit is contained in:
Krzosa Karol
2023-03-31 17:52:10 +02:00
parent 0e01b785f1
commit 61f8c5c825
4 changed files with 11 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ void next(Ast_Iter *iter) {
For(node->decls) iter->stack.add(it);
} break;
case AST_MODULE: invalid_codepath; break;
case AST_MODULE: break; // This happens when we import stuff
case AST_FILE: invalid_codepath; break;
case AST_IDENT:
@@ -200,8 +200,7 @@ void next(Ast_Iter *iter) {
case AST_LAMBDA_EXPR: {
Ast_Lambda *node = (Ast_Lambda *)ast;
iter->stack.add(node);
iter->stack.add(node->scope);
assert(node->scope);
if (node->scope) iter->stack.add(node->scope);
For(node->ret) iter->stack.add(it);
For(node->args) iter->stack.add(it);
} break;