-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHigh Priority
Description
TypeScript Version: master
Search Terms:
Code
export class MyMap<K, V> {
constructor(
private readonly Map_: typeof Map = Map
) {
}
private readonly store = new this.Map_<K, V>();
}
Expected behavior:
export class MyMap {
constructor(Map_ = Map) {
this.Map_ = Map_;
this.store = new this.Map_();
}
}
Actual behavior:
export class MyMap {
constructor(Map_ = Map) {
this.Map_ = Map_;
this.store = new this.Map_<K, V>();
}
}
Playground Link:
Related Issues:
jcalz and uhyo
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueHigh Priority