TypeScript/tests/baselines/reference/functionCall16.js

19 lines
320 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [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) { }
2014-07-13 01:04:16 +02:00
foo('foo', 1);
foo('foo');
foo('foo', 'bar');
foo();
foo(1, 'bar');
foo('foo', 'bar', 3);