From f1af022be1a5594ddd67a68f2c7201d31513630a Mon Sep 17 00:00:00 2001 From: Sathya Gunasekaran Date: Tue, 20 Dec 2022 13:38:09 +0000 Subject: [PATCH] [typer] Fix objectTypeEquals --- compiler/forget/src/HIR/HIR.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/forget/src/HIR/HIR.ts b/compiler/forget/src/HIR/HIR.ts index 3ed1cc4a2f..ea3953fab6 100644 --- a/compiler/forget/src/HIR/HIR.ts +++ b/compiler/forget/src/HIR/HIR.ts @@ -508,7 +508,9 @@ function objectTypeEquals(tA: Type, tB: Type): boolean { } for (const key of tA.properties.keys()) { - if (tA.properties.get(key) !== tB.properties.get(key)) return false; + if (!typeEquals(tA.properties.get(key)!, tB.properties.get(key)!)) { + return false; + } } return true;