Files
tsgo/testdata/tests/cases/compiler/forOfSelfReferentialDottedName.ts

7 lines
203 B
TypeScript

// A self-referential for-of iterable (`for (const a of a)`) plus a call and a
// later narrowing reference must not infinitely recurse in getExplicitTypeOfSymbol.
for (const a of a) {
a();
a;
}