Closed
Description
Would it be possible to add (or did I miss an already open issue regarding) support for a stronger this
assertion?
Coming from strongly typed languages I have to say that worrying about the this
context adds a lot of noise to coding.
I've read this
in typescript wiki page and it helps identifying the issue a lot, but I really don't feel safe coding when this issue is only identified in runtime.
The wiki page suggests red flags for this
issues, is there a chance of requesting this support by the compiler? Some strict mode flag that makes the compiler merely identify places that instance methods are passed by reference instead of invoked and place a warning/error?