Skip to content

Commit 55180f7

Browse files
committed
Add tests
1 parent 87ad612 commit 55180f7

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Repro from #25559
2+
3+
declare function call<TS extends unknown[]>(
4+
handler: (...args: TS) => void,
5+
...args: TS): void;
6+
7+
call((x: number, y: number) => x + y);
8+
call((x: number, y: number) => x + y, 1, 2, 3, 4, 5, 6, 7);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @strict: true
2+
3+
// Repro from #25559
4+
5+
declare function call<TS extends unknown[]>(
6+
handler: (...args: TS) => void,
7+
...args: TS): void;
8+
9+
call((x: number, y: number) => x + y);
10+
call((x: number, y: number) => x + y, 1, 2, 3, 4, 5, 6, 7);

0 commit comments

Comments
 (0)