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

32 lines
585 B
Plaintext

=== tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts ===
class C {
>C : C
static staticProp = 10;
>staticProp : number
>10 : number
get [C.staticProp]() {
>C.staticProp : number
>C : typeof C
>staticProp : number
return "hello";
>"hello" : string
}
set [C.staticProp](x: string) {
>C.staticProp : number
>C : typeof C
>staticProp : number
>x : string
var y = x;
>y : string
>x : string
}
[C.staticProp]() { }
>C.staticProp : number
>C : typeof C
>staticProp : number
}