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]>
25 lines
392 B
TypeScript
25 lines
392 B
TypeScript
//// [tests/cases/compiler/panicForInEmptyDeclarationList.ts] ////
|
|
|
|
//// [panicForInEmptyDeclarationList.ts]
|
|
let x: string[] = [];
|
|
let i = 0;
|
|
|
|
function f() {
|
|
for (let in) {
|
|
let y = x[i];
|
|
return y;
|
|
}
|
|
}
|
|
|
|
|
|
//// [panicForInEmptyDeclarationList.js]
|
|
"use strict";
|
|
let x = [];
|
|
let i = 0;
|
|
function f() {
|
|
for (let in ) {
|
|
let y = x[i];
|
|
return y;
|
|
}
|
|
}
|