2015-03-16 23:20:40 +01:00
|
|
|
=== tests/cases/conformance/es6/computedProperties/computedPropertyNamesWithStaticProperty.ts ===
|
|
|
|
class C {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C, Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0))
|
2015-03-16 23:20:40 +01:00
|
|
|
|
|
|
|
static staticProp = 10;
|
2015-04-13 23:01:57 +02:00
|
|
|
>staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9))
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2015-03-16 23:20:40 +01:00
|
|
|
|
|
|
|
get [C.staticProp]() {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C.staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9))
|
|
|
|
>C : typeof C, Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0))
|
|
|
|
>staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9))
|
2015-03-16 23:20:40 +01:00
|
|
|
|
|
|
|
return "hello";
|
2015-04-13 21:36:11 +02:00
|
|
|
>"hello" : string
|
2015-03-16 23:20:40 +01:00
|
|
|
}
|
|
|
|
set [C.staticProp](x: string) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C.staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9))
|
|
|
|
>C : typeof C, Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0))
|
|
|
|
>staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9))
|
|
|
|
>x : string, Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 5, 23))
|
2015-03-16 23:20:40 +01:00
|
|
|
|
|
|
|
var y = x;
|
2015-04-13 23:01:57 +02:00
|
|
|
>y : string, Symbol(y, Decl(computedPropertyNamesWithStaticProperty.ts, 6, 11))
|
|
|
|
>x : string, Symbol(x, Decl(computedPropertyNamesWithStaticProperty.ts, 5, 23))
|
2015-03-16 23:20:40 +01:00
|
|
|
}
|
|
|
|
[C.staticProp]() { }
|
2015-04-13 23:01:57 +02:00
|
|
|
>C.staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9))
|
|
|
|
>C : typeof C, Symbol(C, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 0))
|
|
|
|
>staticProp : number, Symbol(C.staticProp, Decl(computedPropertyNamesWithStaticProperty.ts, 0, 9))
|
2015-03-16 23:20:40 +01:00
|
|
|
}
|