TypeScript/tests/cases/compiler/fatarrowfunctionsOptionalArgsErrors1.ts
2015-07-24 14:59:55 -07:00

7 lines
181 B
TypeScript

(arg1?, arg2) => 101;
(...arg?) => 102;
(...arg) => 103;
(...arg:number [] = []) => 104;
// Uninitialized parameter makes the initialized one required
(arg1 = 1, arg2) => 1;