TypeScript/tests/baselines/reference/restParamAsOptional.errors.txt
2014-12-01 22:03:41 -08:00

11 lines
505 B
Plaintext

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.