TypeScript/tests/baselines/reference/emitClassDeclarationWithMethodInES6.types

57 lines
1.1 KiB
Text

=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithMethodInES6.ts ===
class D {
>D : D
_bar: string;
>_bar : string
foo() { }
>foo : () => void
["computedName"]() { }
["computedName"](a: string) { }
>a : string
["computedName"](a: string): number { return 1; }
>a : string
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";
}
static ["computedname"]() { }
static ["computedname"](a: string) { }
>a : string
static ["computedname"](a: string): boolean { return true; }
>a : string
static staticMethod() {
>staticMethod : () => number
var x = 1 + 2;
>x : number
>1 + 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
}