Closed
Description
let types;
[x, ...types] = [1,2,3];
Compiling this piece of code yields the following error in the Compiler but executes fine in Chrome.
JSC_REDECLARED_VARIABLE_ERROR: Illegal redeclared variable: types at line 3 character 7
[x, ...types] = [1,2,3];
Reproduced with the closure-compiler.appspot.com web compiler and the v20180422
release.
Seen in the jsonld npm
package.
Metadata
Metadata
Assignees
Labels
No labels