This commit is contained in:
nora 2023-07-29 21:32:35 +02:00
parent 761f78de0b
commit 09ae6cbb56
5 changed files with 6 additions and 7 deletions

View file

@ -316,7 +316,7 @@ 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
// 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;