Skip to content

Commit

Permalink
Add missing getApparentType call
Browse files Browse the repository at this point in the history
  • Loading branch information
ahejlsberg committed Apr 30, 2020
1 parent 53320f5 commit d905ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d905ced

Please sign in to comment.