mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
584 B
Plaintext
17 lines
584 B
Plaintext
//// [tests/cases/compiler/forOfSelfReferentialDottedName.ts] ////
|
|
|
|
=== forOfSelfReferentialDottedName.ts ===
|
|
// 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 : Symbol(a, Decl(forOfSelfReferentialDottedName.ts, 2, 10))
|
|
>a : Symbol(a, Decl(forOfSelfReferentialDottedName.ts, 2, 10))
|
|
|
|
a();
|
|
>a : Symbol(a, Decl(forOfSelfReferentialDottedName.ts, 2, 10))
|
|
|
|
a;
|
|
>a : Symbol(a, Decl(forOfSelfReferentialDottedName.ts, 2, 10))
|
|
}
|
|
|