GMEdit
GMEdit copied to clipboard
Feature request: warn on implicit any
Making an issue of it because I imagine it's a large request. I'm in the process of converting a fairly large project into having type annotations. It's not always clear what parts have been annotated yet and where issues can crop up. It's also easy to miss some necessary typings in create events.
Example:
///Create event:
var _foo = 0;
myFoo = _foo; ///want_warn implicit any
myBar = scr_custom_script(); ///want_warn implicit any
///Step event:
var _bar = myBar; ///want_warn implicit_any
Since this is pretty disruptive, I imagine this would be a setting that's disabled by default.
Now this doesn't do much to warn when actually using the implicit any in code.
I'm not sure if it should warn on if (myBar == "foo")
or not.