31 lines
585 B
Text
31 lines
585 B
Text
=== 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
|
|
}
|