mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +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; |