2015-03-12 16:40:09 +01:00
|
|
|
//// [computedPropertyNamesWithStaticProperty.ts]
|
|
|
|
class C {
|
|
|
|
static staticProp = 10;
|
|
|
|
get [C.staticProp]() {
|
|
|
|
return "hello";
|
|
|
|
}
|
|
|
|
set [C.staticProp](x: string) {
|
|
|
|
var y = x;
|
|
|
|
}
|
|
|
|
[C.staticProp]() { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNamesWithStaticProperty.js]
|
|
|
|
class C {
|
|
|
|
get [C.staticProp]() {
|
|
|
|
return "hello";
|
|
|
|
}
|
|
|
|
set [C.staticProp](x) {
|
|
|
|
var y = x;
|
|
|
|
}
|
2015-03-26 21:46:35 +01:00
|
|
|
[C.staticProp]() { }
|
2015-03-12 16:40:09 +01:00
|
|
|
}
|
|
|
|
C.staticProp = 10;
|