2015-03-16 23:41:51 +01:00
|
|
|
//// [emitClassDeclarationWithThisKeywordInES6.ts]
|
2015-03-13 00:34:06 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-16 23:41:51 +01:00
|
|
|
//// [emitClassDeclarationWithThisKeywordInES6.js]
|
2015-03-13 00:34:06 +01:00
|
|
|
class B {
|
|
|
|
constructor() {
|
|
|
|
this.x = 10;
|
|
|
|
this.x = 10;
|
|
|
|
}
|
2015-03-26 21:46:35 +01:00
|
|
|
static log(a) { }
|
2015-03-13 00:34:06 +01:00
|
|
|
foo() {
|
|
|
|
B.log(this.x);
|
|
|
|
}
|
|
|
|
get X() {
|
|
|
|
return this.x;
|
|
|
|
}
|
|
|
|
set bX(y) {
|
|
|
|
this.x = y;
|
|
|
|
}
|
|
|
|
}
|