TypeScript/tests/baselines/reference/restParameterWithBindingPattern2.errors.txt

10 lines
544 B
Text
Raw Normal View History

tests/cases/compiler/restParameterWithBindingPattern2.ts(1,12): error TS2370: A rest parameter must be of an array type.
tests/cases/compiler/restParameterWithBindingPattern2.ts(1,15): error TS2501: A rest element cannot contain a binding pattern.
==== tests/cases/compiler/restParameterWithBindingPattern2.ts (2 errors) ====
function a(...[a, b]) { }
~~~~~~~~~
!!! error TS2370: A rest parameter must be of an array type.
~~~~~~
!!! error TS2501: A rest element cannot contain a binding pattern.