TypeScript/tests/baselines/reference/functionCall12.js
2014-07-12 17:30:19 -07:00

20 lines
317 B
JavaScript

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