mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
Saved
This commit is contained in:
parent
e9f8a6f701
commit
629b4bbfdf
@ -3,6 +3,8 @@
|
||||
function f(x: number, y: number, ...z: string[]) {
|
||||
}
|
||||
|
||||
function f2(...a: string[]) {}
|
||||
|
||||
interface A {
|
||||
f: {
|
||||
new (x: number, y: number, ...z: string[]);
|
||||
@ -35,6 +37,9 @@ new f(1, 2, "string");
|
||||
new f(1, 2, ...a);
|
||||
new f(1, 2, ...a, "string");
|
||||
|
||||
// Multiple spreads arguments
|
||||
new f2(...a, ...a);
|
||||
|
||||
// Call expression
|
||||
new f(1, 2, "string")();
|
||||
new f(1, 2, ...a)();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user