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

18 lines
267 B
JavaScript

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