printing!!!

This commit is contained in:
nora 2023-07-29 21:32:19 +02:00
parent 27a4ecc46b
commit 761f78de0b
6 changed files with 165 additions and 26 deletions

View file

@ -315,6 +315,9 @@ export class InferContext {
}
public resolveIfPossible(ty: Ty): Ty {
// TODO: dont be shallow resolve
// note that fixing this will cause cycles. fix those cycles instead using
// he fancy occurs check as errs called it.
if (ty.kind === "var") {
return this.tryResolveVar(ty.index) ?? ty;
} else {