We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22d1f68 commit 90382b2Copy full SHA for 90382b2
1 file changed
src/compiler/checker.ts
@@ -19598,7 +19598,9 @@ namespace ts {
19598
}
19599
if (type.flags & TypeFlags.IndexedAccess) {
19600
// Identity is the leftmost object type in a chain of indexed accesses, eg, in A[P][Q] it is A
19601
- do { type = (type as IndexedAccessType).objectType } while (type.flags & TypeFlags.IndexedAccess);
+ do {
19602
+ type = (type as IndexedAccessType).objectType;
19603
+ } while (type.flags & TypeFlags.IndexedAccess);
19604
return type;
19605
19606
if (type.flags & TypeFlags.Conditional) {
0 commit comments