Conflicts: src/compiler/checker.ts src/compiler/diagnosticInformationMap.generated.ts src/compiler/diagnosticMessages.json src/harness/fourslash.ts
9 lines
No EOL
415 B
Text
9 lines
No EOL
415 B
Text
tests/cases/conformance/es6/destructuring/restElementWithInitializer1.ts(2,11): error TS1186: A rest element cannot have an initializer.
|
|
|
|
|
|
==== tests/cases/conformance/es6/destructuring/restElementWithInitializer1.ts (1 errors) ====
|
|
var a: number[];
|
|
var [...x = a] = a; // Error, rest element cannot have initializer
|
|
~
|
|
!!! error TS1186: A rest element cannot have an initializer.
|
|
|