[typer] Fix objectTypeEquals
Sathya Gunasekaran committed
Dec 20, 2022 at 13:38 UTC
f1af022be1a5594ddd67a68f2c7201d31513630a
1 file changed
+3
-1
compiler/forget/src/HIR/HIR.ts
+3
-1
@@ -508,7 +508,9 @@ function objectTypeEquals(tA: Type, tB: Type): boolean {
508
}
509
510
for (const key of tA.properties.keys()) {
511
- if (tA.properties.get(key) !== tB.properties.get(key)) return false;
511
+ if (!typeEquals(tA.properties.get(key)!, tB.properties.get(key)!)) {
512
+ return false;
513
+ }
514
}
515
516
return true;