TypeScript/tests/baselines/reference/emitClassDeclarationWithMethodInES6.types
2015-04-15 16:44:20 -07:00

72 lines
1.3 KiB
Plaintext

=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithMethodInES6.ts ===
class D {
>D : D
_bar: string;
>_bar : string
foo() { }
>foo : () => void
["computedName"]() { }
>"computedName" : string
["computedName"](a: string) { }
>"computedName" : string
>a : string
["computedName"](a: string): number { return 1; }
>"computedName" : string
>a : string
>1 : number
bar(): string {
>bar : () => string
return this._bar;
>this._bar : string
>this : D
>_bar : string
}
baz(a: any, x: string): string {
>baz : (a: any, x: string) => string
>a : any
>x : string
return "HELLO";
>"HELLO" : string
}
static ["computedname"]() { }
>"computedname" : string
static ["computedname"](a: string) { }
>"computedname" : string
>a : string
static ["computedname"](a: string): boolean { return true; }
>"computedname" : string
>a : string
>true : boolean
static staticMethod() {
>staticMethod : () => number
var x = 1 + 2;
>x : number
>1 + 2 : number
>1 : number
>2 : number
return x
>x : number
}
static foo(a: string) { }
>foo : (a: string) => void
>a : string
static bar(a: string): number { return 1; }
>bar : (a: string) => number
>a : string
>1 : number
}