2014-07-13 01:04:16 +02:00
|
|
|
//// [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]
|
2015-02-07 03:45:09 +01:00
|
|
|
function foo(a, b, c) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
foo('foo', 1);
|
|
|
|
foo('foo');
|
|
|
|
foo();
|
|
|
|
foo(1, 'bar');
|
|
|
|
foo('foo', 1, 'bar');
|
|
|
|
foo('foo', 1, 3);
|