TypeScript/tests/baselines/reference/emitClassDeclarationWithThisKeywordInES6.types

55 lines
836 B
Plaintext
Raw Normal View History

2015-03-16 23:41:51 +01:00
=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithThisKeywordInES6.ts ===
2015-03-13 00:34:06 +01:00
class B {
>B : B
2015-03-13 00:34:06 +01:00
x = 10;
>x : number
2015-04-13 21:36:11 +02:00
>10 : number
2015-03-13 00:34:06 +01:00
constructor() {
this.x = 10;
>this.x = 10 : number
>this.x : number
>this : B
>x : number
2015-04-13 21:36:11 +02:00
>10 : number
2015-03-13 00:34:06 +01:00
}
static log(a: number) { }
>log : (a: number) => void
>a : number
2015-03-13 00:34:06 +01:00
foo() {
>foo : () => void
2015-03-13 00:34:06 +01:00
B.log(this.x);
>B.log(this.x) : void
>B.log : (a: number) => void
>B : typeof B
>log : (a: number) => void
>this.x : number
>this : B
>x : number
2015-03-13 00:34:06 +01:00
}
get X() {
>X : number
2015-03-13 00:34:06 +01:00
return this.x;
>this.x : number
>this : B
>x : number
2015-03-13 00:34:06 +01:00
}
set bX(y: number) {
>bX : number
>y : number
2015-03-13 00:34:06 +01:00
this.x = y;
>this.x = y : number
>this.x : number
>this : B
>x : number
>y : number
2015-03-13 00:34:06 +01:00
}
}