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

19 lines
337 B
JavaScript

//// [functionCall17.ts]
function foo(a:string, b?:string, c?:number, ...d:number[]){}
foo('foo', 1);
foo('foo');
foo();
foo(1, 'bar');
foo('foo', 1, 3);
foo('foo', 'bar', 3, 4);
//// [functionCall17.js]
function foo(a, b, c) { }
foo('foo', 1);
foo('foo');
foo();
foo(1, 'bar');
foo('foo', 1, 3);
foo('foo', 'bar', 3, 4);