36 lines
624 B
Text
36 lines
624 B
Text
|
=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithGetterSetterInES6.ts ===
|
||
|
class C {
|
||
|
>C : C
|
||
|
|
||
|
_name: string;
|
||
|
>_name : string
|
||
|
|
||
|
get name(): string {
|
||
|
>name : string
|
||
|
|
||
|
return this._name;
|
||
|
>this._name : string
|
||
|
>this : C
|
||
|
>_name : string
|
||
|
}
|
||
|
static get name2(): string {
|
||
|
>name2 : string
|
||
|
|
||
|
return "BYE";
|
||
|
}
|
||
|
static get ["computedname"]() {
|
||
|
return "";
|
||
|
}
|
||
|
|
||
|
set foo(a: string) { }
|
||
|
>foo : string
|
||
|
>a : string
|
||
|
|
||
|
static set bar(b: number) { }
|
||
|
>bar : number
|
||
|
>b : number
|
||
|
|
||
|
static set ["computedname"](b: string) { }
|
||
|
>b : string
|
||
|
}
|