11 lines
No EOL
505 B
Text
11 lines
No EOL
505 B
Text
tests/cases/compiler/restParamAsOptional.ts(1,16): error TS1047: A rest parameter cannot be optional.
|
|
tests/cases/compiler/restParamAsOptional.ts(2,16): error TS1048: A rest parameter cannot have an initializer.
|
|
|
|
|
|
==== tests/cases/compiler/restParamAsOptional.ts (2 errors) ====
|
|
function f(...x?) { }
|
|
~
|
|
!!! error TS1047: A rest parameter cannot be optional.
|
|
function f2(...x = []) { }
|
|
~
|
|
!!! error TS1048: A rest parameter cannot have an initializer. |