You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution might be to better understand prototype assignment in getWidenedTypeFromJSPropertyAssignments. I tried calling getJavascriptClassType when there's a prototype assignment, but that resulted in a circularity. Probably a slightly more complex fix will work.
Note that this is only true with noImplicitAny on. The bug does not manifest with it off.
This is a regression in 3.1. It does not manifest in 3.0.
Expected behavior:
No error on
Multimap.prototype.lol
, and_map
,x
andlol
are properties on Multimap.Actual behavior:
Error: 'lol' does not exist on type '{ x(): void }'. But all 3 are properties on Multimap.
The text was updated successfully, but these errors were encountered: