google / google/closure-compiler
Inline type annotation does not work when the declaration parent has JSDocInfo
Open
P3
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
``` js
/** @const */ var /** number */ x = '3'; // Will not generate a warning
```
http://closure-compiler-debugger.appspot.com/#input0%3D%252F**%2520%2540const%2520*%252F%2520var%2520%252F**%2520number%2520*%252F%2520x%2520%253D%2520'3'%253B%250A%26input1%26conformanceConfig%26externs%26refasterjs-template%26includeDefaultExterns%3D1%26CHECK_SYMBOLS%3D1%26CHECK_TYPES%3D1%26LANG_IN_IS_ES6%3D1%26MISSING_PROPERTIES%3D1%26PRESERVE_TYPE_ANNOTATIONS%3D1%26PRETTY_PRINT%3D1%26TRANSPILE%3D1
Contributor guide
Assessment
This issue has not been assessed yet.