From 629b4bbfdfd2a9199d66e521c997d6c007fd252a Mon Sep 17 00:00:00 2001 From: Tingan Ho Date: Fri, 15 May 2015 15:45:08 +0800 Subject: [PATCH] Saved --- .../expressions/functionCalls/newWithSpreadES5.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts b/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts index 0a60c6ff339..b826b639a8e 100644 --- a/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts +++ b/tests/cases/conformance/expressions/functionCalls/newWithSpreadES5.ts @@ -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)();