swc/crates/swc_ecma_parser/tests/tsc/classPropertyIsPublicByDefault.ts

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();