Core Compiler: Fix type incomplete polymorph, work on RTS
This commit is contained in:
@@ -205,6 +205,7 @@ Ast *ast_copy(Ast *ast, Ast_Scope *parent_scope, Array<Poly_Replacement> *repl)
|
||||
dst = (Ast_Atom *)ast_copy(it.ast, parent_scope, 0);
|
||||
}
|
||||
else if (it.kind == POLY_TYPE_REPLACEMENT) {
|
||||
type_complete(it.type);
|
||||
dst = (Ast_Atom *)create_typespec_from_type(dst->pos, parent_scope, it.type);
|
||||
}
|
||||
else invalid_codepath;
|
||||
|
||||
Reference in New Issue
Block a user