From d905cede252cbff2b1d8fbc24648b2e85514a648 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Thu, 30 Apr 2020 14:53:01 -0700 Subject: [PATCH] Add missing getApparentType call --- src/compiler/checker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index f24f8b93d1ab5..31d0132d1b18f 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -9693,7 +9693,7 @@ namespace ts { const indexTypes: Type[] = []; let isAnyReadonly = false; for (const type of types) { - const indexInfo = getIndexInfoOfType(type, kind); + const indexInfo = getIndexInfoOfType(getApparentType(type), kind); if (!indexInfo) { return undefined; }