Skip to content

Commit 19f01a2

Browse files
committed
Add test for regression
1 parent 2fdf7b5 commit 19f01a2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/cases/conformance/classes/propertyMemberDeclarations/instanceMemberInitialization.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@ class C {
55
var c = new C();
66
c.x = 3;
77
var c2 = new C();
8-
var r = c.x === c2.x;
8+
var r = c.x === c2.x;
9+
10+
// #31792
11+
export class MyMap<K, V> {
12+
constructor(private readonly Map_: typeof Map = Map) {}
13+
private readonly store = new this.Map_<K, V>();
14+
}

0 commit comments

Comments
 (0)