2014-12-02 07:03:41 +01:00
|
|
|
tests/cases/compiler/restParamAsOptional.ts(1,16): error TS1047: A rest parameter cannot be optional.
|
2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/restParamAsOptional.ts(2,16): error TS1048: A rest parameter cannot have an initializer.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/restParamAsOptional.ts (2 errors) ====
|
|
|
|
function f(...x?) { }
|
2014-12-02 07:03:41 +01:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1047: A rest parameter cannot be optional.
|
2014-07-13 01:04:16 +02:00
|
|
|
function f2(...x = []) { }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1048: A rest parameter cannot have an initializer.
|