Files

20 lines
333 B
TypeScript

//// [tests/cases/compiler/functionCall13.ts] ////
//// [functionCall13.ts]
function foo(a:string, ...b:number[]){}
foo('foo', 1);
foo('foo');
foo();
foo(1, 'bar');
foo('foo', 1, 3);
//// [functionCall13.js]
"use strict";
function foo(a, ...b) { }
foo('foo', 1);
foo('foo');
foo();
foo(1, 'bar');
foo('foo', 1, 3);