google / google/closure-compiler

Can not create const Database

Open
#2,230 1 comment 0 reactions 0 assignees View on GitHub
Externs
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

create test.js file with only
```js
const Database = null;
```
$ java -jar compiler.jar --js test.js

test.js:1: ERROR - Duplicate let / const / class declaration in the same scope is not allowed.
const Database = null;

$ java -jar compiler.jar --version
Closure Compiler (http://github.com/google/closure-compiler)
Version: v20161201
Built on: 2016-12-02 14:56

Same with online version

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.