TypeScript/tests/cases/compiler/functionCall17.ts
2014-07-12 17:30:19 -07:00

8 lines
163 B
TypeScript

function foo(a:string, b?:string, c?:number, ...d:number[]){}
foo('foo', 1);
foo('foo');
foo();
foo(1, 'bar');
foo('foo', 1, 3);
foo('foo', 'bar', 3, 4);