google / google/closure-compiler
Parse error with variable named 'static'
Open
bug
Parser
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
``` js
var static = 3;
var foo = static ? 4 : 5;
```
```
JSC_PARSE_ERROR: Parse error. primary expression expected at line 2 character 16
var foo = static ? 4 : 5;
^
```
https://closure-compiler.appspot.com/home#code%3D%252F%252F%2520%253D%253DClosureCompiler%253D%253D%250A%252F%252F%2520%2540compilation_level%2520SIMPLE_OPTIMIZATIONS%250A%252F%252F%2520%2540output_file_name%2520default.js%250A%252F%252F%2520%253D%253D%252FClosureCompiler%253D%253D%250A%250Avar%2520static%2520%253D%25203%253B%250Avar%2520foo%2520%253D%2520static%2520%253F%25204%2520%253A%25205%253B
Contributor guide
Assessment
This issue has not been assessed yet.