TypeScript/tests/cases/compiler/functionCall12.ts

8 lines
145 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
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);