Files
tsgo/testdata/baselines/reference/submodule/conformance/genericRestArityStrict.js

19 lines
483 B
TypeScript

//// [tests/cases/conformance/types/rest/genericRestArityStrict.ts] ////
//// [genericRestArityStrict.ts]
// Repro from #25559
declare function call<TS extends unknown[]>(
handler: (...args: TS) => void,
...args: TS): void;
call((x: number, y: number) => x + y);
call((x: number, y: number) => x + y, 1, 2, 3, 4, 5, 6, 7);
//// [genericRestArityStrict.js]
"use strict";
// Repro from #25559
call((x, y) => x + y);
call((x, y) => x + y, 1, 2, 3, 4, 5, 6, 7);