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
functionMultimap(){this._map={};};Multimap.prototype={/** * @param {string} key * @returns {number} the value ok */get(key){returnthis._map[key+''];}}/** @type {Multimap} */constmap=newMultimap();constn=map.get('hi')
Expected behavior:
No error on map.get
Actual behavior:
Error: 'get' not found on type 'Multimap'
I thought there were tests that covered exactly this case, but apparently not. This doesn't work in 3.0 or 3.1.
The text was updated successfully, but these errors were encountered:
sandersn
added
Bug
A bug in TypeScript
and removed
Add a Flag
Any problem can be solved by flags, except for the problem of having too many flags
labels
Sep 4, 2018
Expected behavior:
No error on
map.get
Actual behavior:
Error: 'get' not found on type 'Multimap'
I thought there were tests that covered exactly this case, but apparently not. This doesn't work in 3.0 or 3.1.
The text was updated successfully, but these errors were encountered: