From 8576018af1825a5df897376a9eb75031b54dbbb7 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 4 Apr 2019 11:27:59 -0700 Subject: [PATCH] Add failing test for function calls that have at least one non-spread argument, a spread argument, and overall potentially too few arguments --- .../conformance/expressions/functionCalls/callWithSpread2.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts b/tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts index abf445a700e..2769142bdd8 100644 --- a/tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts +++ b/tests/cases/conformance/expressions/functionCalls/callWithSpread2.ts @@ -4,6 +4,7 @@ declare function prefix(s: string, a?: number, b?: number): void; declare function rest(s: string, a?: number, b?: number, ...rest: number[]): void; declare function normal(s: string): void; declare function thunk(): string; +declare function prefix2(s: string, n: number, a?: number, b?: number): void; declare var ns: number[]; declare var mixed: (number | string)[]; @@ -32,3 +33,4 @@ rest("f", ...tuple) prefix(...ns) // required parameters are required prefix(...mixed) prefix(...tuple) +prefix2("g", ...ns);