10 lines
544 B
Text
10 lines
544 B
Text
|
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.
|