Removing polymorph from test
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user