TypeScript/tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithThisKeywordInES6.ts
2015-03-16 15:41:51 -07:00

19 lines
273 B
TypeScript

// @target: es6
class B {
x = 10;
constructor() {
this.x = 10;
}
static log(a: number) { }
foo() {
B.log(this.x);
}
get X() {
return this.x;
}
set bX(y: number) {
this.x = y;
}
}