mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
840 B
Plaintext
19 lines
840 B
Plaintext
fatarrowfunctionsOptionalArgsErrors1.ts(1,9): error TS1016: A required parameter cannot follow an optional parameter.
|
|
fatarrowfunctionsOptionalArgsErrors1.ts(2,8): error TS1047: A rest parameter cannot be optional.
|
|
fatarrowfunctionsOptionalArgsErrors1.ts(4,5): error TS1048: A rest parameter cannot have an initializer.
|
|
|
|
|
|
==== fatarrowfunctionsOptionalArgsErrors1.ts (3 errors) ====
|
|
(arg1?, arg2) => 101;
|
|
~~~~
|
|
!!! error TS1016: A required parameter cannot follow an optional parameter.
|
|
(...arg?) => 102;
|
|
~
|
|
!!! error TS1047: A rest parameter cannot be optional.
|
|
(...arg) => 103;
|
|
(...arg:number [] = []) => 104;
|
|
~~~
|
|
!!! error TS1048: A rest parameter cannot have an initializer.
|
|
|
|
// Uninitialized parameter makes the initialized one required
|
|
(arg1 = 1, arg2) => 1; |