wcjohnson / lightscript

A futuristic fork of the LightScript language.
http://wcjohnson.github.io/lightscript
7 stars 0 forks source link

`unnecessary-const`: false positive #113

Closed wcjohnson closed 4 years ago

wcjohnson commented 5 years ago

When a variable in a lower scope is shadowing a variable from a higher scope, LightScript requires an explicit const. The unnecessary-const rule is flagging false positive i this case, example, res is shadowing another res below:

screen shot 2018-11-05 at 3 34 34 pm