swc/crates/swc_ecma_parser/tests/tsc/restParameterInDownlevelGenerator.ts

9 lines
225 B
TypeScript

// @target: es5
// @lib: es2015
// @downlevelIteration: true
// @noEmitHelpers: true
// https://github.com/Microsoft/TypeScript/issues/30653
function * mergeStringLists(...strings: string[]) {
for (var str of strings);
}