mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
585 B
TypeScript
20 lines
585 B
TypeScript
//// [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();
|
|
a;
|
|
}
|
|
|
|
|
|
//// [forOfSelfReferentialDottedName.js]
|
|
"use strict";
|
|
// 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;
|
|
}
|