TypeScript/tests/baselines/reference/functionCall16.js
2015-02-06 18:45:09 -08:00

19 lines
320 B
JavaScript

//// [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]
function foo(a, b) { }
foo('foo', 1);
foo('foo');
foo('foo', 'bar');
foo();
foo(1, 'bar');
foo('foo', 'bar', 3);