mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
13 lines
197 B
TypeScript
13 lines
197 B
TypeScript
class C {
|
|
constructor(readonly x: number) {}
|
|
}
|
|
new C(1).x = 2;
|
|
|
|
class E {
|
|
constructor(readonly public x: number) {}
|
|
}
|
|
|
|
class F {
|
|
constructor(private readonly x: number) {}
|
|
}
|
|
new F(1).x; |