mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
19 lines
317 B
TypeScript
19 lines
317 B
TypeScript
class C {
|
|
static fn() { return this; }
|
|
static get x() { return 1; }
|
|
static set x(v) { }
|
|
constructor(public a: number, private b: number) { }
|
|
static foo: string;
|
|
}
|
|
|
|
var r = C.fn();
|
|
var r2 = r.x;
|
|
var r3 = r.foo;
|
|
|
|
class D extends C {
|
|
bar: string;
|
|
}
|
|
|
|
var r = D.fn();
|
|
var r2 = r.x;
|
|
var r3 = r.foo; |