Files
tsgo/testdata/baselines/reference/compiler/panicForInEmptyDeclarationList.errors.txt
cbd157804e Fix panic in getForInVariableSymbol for empty for-in declaration list (#2860)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: DanielRosenwasser <[email protected]>
2026-02-20 23:41:57 +00:00

16 lines
350 B
Plaintext

panicForInEmptyDeclarationList.ts(5,14): error TS1109: Expression expected.
==== panicForInEmptyDeclarationList.ts (1 errors) ====
let x: string[] = [];
let i = 0;
function f() {
for (let in) {
~
!!! error TS1109: Expression expected.
let y = x[i];
return y;
}
}