mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
cbd157804e
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: DanielRosenwasser <[email protected]>
24 lines
676 B
Plaintext
24 lines
676 B
Plaintext
//// [tests/cases/compiler/panicForInEmptyDeclarationList.ts] ////
|
|
|
|
=== panicForInEmptyDeclarationList.ts ===
|
|
let x: string[] = [];
|
|
>x : Symbol(x, Decl(panicForInEmptyDeclarationList.ts, 0, 3))
|
|
|
|
let i = 0;
|
|
>i : Symbol(i, Decl(panicForInEmptyDeclarationList.ts, 1, 3))
|
|
|
|
function f() {
|
|
>f : Symbol(f, Decl(panicForInEmptyDeclarationList.ts, 1, 10))
|
|
|
|
for (let in) {
|
|
let y = x[i];
|
|
>y : Symbol(y, Decl(panicForInEmptyDeclarationList.ts, 5, 7))
|
|
>x : Symbol(x, Decl(panicForInEmptyDeclarationList.ts, 0, 3))
|
|
>i : Symbol(i, Decl(panicForInEmptyDeclarationList.ts, 1, 3))
|
|
|
|
return y;
|
|
>y : Symbol(y, Decl(panicForInEmptyDeclarationList.ts, 5, 7))
|
|
}
|
|
}
|
|
|