From d4624e6af98a2d46beb5bec539d040c99e96b1af Mon Sep 17 00:00:00 2001 From: kingwl Date: Wed, 20 May 2020 21:36:18 +0800 Subject: [PATCH] fix changes --- 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 e118403e407c8..2cafef7b561d7 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -9974,7 +9974,7 @@ namespace ts { const declaration = getIndexDeclarationOfIndexSymbol(indexSymbol, indexKind); if (!declaration) return undefined; return createIndexInfo(declaration.type ? getTypeFromTypeNode(declaration.type) : anyType, - hasModifier(declaration, ModifierFlags.Readonly), declaration); + hasEffectiveModifier(declaration, ModifierFlags.Readonly), declaration); } function resolveReverseMappedTypeMembers(type: ReverseMappedType) {