google / google/closure-compiler
Make uninitialized non-nullable var a warning
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
If someone does something like this:
```
/** @type {number} */
var foo;
```
They now need to ensure their non-nullable type is defined. Does it make sense to force an initialization in this case?
Contributor guide
Assessment
This issue has not been assessed yet.