Skip to content

Add a non-generic construct signature to Map, Set, and WeakMap#3547

Merged
mhegazy merged 2 commits into
masterfrom
updateMapDeclaration
Jun 24, 2015
Merged

Add a non-generic construct signature to Map, Set, and WeakMap#3547
mhegazy merged 2 commits into
masterfrom
updateMapDeclaration

Conversation

@mhegazy
Copy link
Copy Markdown
Contributor

@mhegazy mhegazy commented Jun 18, 2015

This change adds a non-generic construct signature to Map, Set and WeakMap to allow for calling new Map() without having to specify the generic type arguments.

var m: Map<number, string> = new Map(); // results in error: Map<{}, {}> is not assignable to Map<number, string>

mhegazy added a commit that referenced this pull request Jun 24, 2015
Add a non-generic construct signature to Map, Set, and WeakMap
@mhegazy mhegazy merged commit 72aeb3c into master Jun 24, 2015
@mhegazy mhegazy deleted the updateMapDeclaration branch June 24, 2015 00:38
@mhegazy
Copy link
Copy Markdown
Contributor Author

mhegazy commented Jun 24, 2015

@vladima gave verbal sign off.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants