TypeScript/tests/baselines/reference/functionCall14.js

17 lines
260 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [functionCall14.ts]
function foo(a?:string, ...b:number[]){}
foo('foo', 1);
foo('foo');
foo();
foo(1, 'bar');
foo('foo', 1, 3);
//// [functionCall14.js]
function foo(a) { }
2014-07-13 01:04:16 +02:00
foo('foo', 1);
foo('foo');
foo();
foo(1, 'bar');
foo('foo', 1, 3);