mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Saved
This commit is contained in:
@@ -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)();
|
||||
|
||||
Reference in New Issue
Block a user