Files
tsgo/testdata/baselines/reference/submodule/compiler/functionCall16.js

22 lines
395 B
TypeScript

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