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