mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
22 lines
260 B
TypeScript
22 lines
260 B
TypeScript
class C {
|
|
x: string;
|
|
get y() { return null; }
|
|
set y(x) { }
|
|
foo() { }
|
|
|
|
static a: string;
|
|
static get b() { return null; }
|
|
static set b(x) { }
|
|
static foo() { }
|
|
}
|
|
|
|
var c: C;
|
|
c.x;
|
|
c.y;
|
|
c.y = 1;
|
|
c.foo();
|
|
|
|
C.a;
|
|
C.b();
|
|
C.b = 1;
|
|
C.foo(); |