Core Compiler: Fix type incomplete polymorph, work on RTS

This commit is contained in:
Krzosa Karol
2023-04-18 16:23:36 +02:00
parent 4ecb329033
commit bea10a621e
6 changed files with 73 additions and 36 deletions

View File

@@ -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;