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 reason 3.0 doesn't repro is that all objects have an index signature, even with noImplicitAny. In 3.1, noImplicitAny doesn't put an index signature on object literals.
Outside references to Multimap instances have the correct type because they create an intersection. checkThisExpression should do the same thing.
* Fix this-type in prototype-assigned object literals
Some cases were missing from tryGetThisTypeAt.
Fixes#26831
* Lookup this in JS only for @constructor+prototype assignments
Expected behavior:
No errors on
this._map
references.Actual behavior:
Property '_map' doesn't exist on type
{ set(key: K): V }
.The text was updated successfully, but these errors were encountered: