This commit is contained in:
Tingan Ho 2015-05-15 15:45:08 +08:00
parent e9f8a6f701
commit 629b4bbfdf

View File

@ -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)();