swc/tests/tsc-references/classes/propertyMemberDeclarations/abstractProperty/input.ts/es2015.1.normal/output.js

19 lines
285 B
JavaScript

// @target: es2015,esnext
// @useDefineForClassFields: true
class A {
foo() {
console.log(this.x);
}
}
class B extends A {
constructor(...args){
super(...args);
this.x = 'B.x';
}
}
class C extends A {
get x() {
return 'C.x';
}
}