There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Adding properties through .prototype
Adding properties through
.prototype.<value> = … breaks the type analysis.
What I expected it to do was to understand that I'm adding a property to the prototype,
and therefore I expected it to understand what type
this was, in the context.
Instead, it refuses to perform any type analysis (and infers
It also raises a warning saying that the property I'm adding doesn't exist on the prototype (duh).
At least, it still compiles to JS just fine!