mirror of
https://github.com/swc-project/swc.git
synced 2024-12-03 00:54:25 +03:00
17 lines
241 B
TypeScript
17 lines
241 B
TypeScript
class C {
|
|
x = 1;
|
|
}
|
|
|
|
var c = new C();
|
|
c.x = 3;
|
|
var c2 = new C();
|
|
var r = c.x === c2.x;
|
|
|
|
// #31792
|
|
|
|
|
|
|
|
class MyMap<K, V> {
|
|
constructor(private readonly Map_: { new<K, V>(): any }) {}
|
|
private readonly store = new this.Map_<K, V>();
|
|
} |