34 lines
717 B
JavaScript
34 lines
717 B
JavaScript
|
//// [computedPropertyNamesDeclarationEmit2.ts]
|
||
|
class C {
|
||
|
static ["" + ""]() { }
|
||
|
static get ["" + ""]() { return 0; }
|
||
|
static set ["" + ""](x) { }
|
||
|
}
|
||
|
|
||
|
//// [computedPropertyNamesDeclarationEmit2.js]
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
}
|
||
|
C["" + ""] = function () {
|
||
|
};
|
||
|
Object.defineProperty(C, "" + "", {
|
||
|
get: function () {
|
||
|
return 0;
|
||
|
},
|
||
|
enumerable: true,
|
||
|
configurable: true
|
||
|
});
|
||
|
Object.defineProperty(C, "" + "", {
|
||
|
set: function (x) {
|
||
|
},
|
||
|
enumerable: true,
|
||
|
configurable: true
|
||
|
});
|
||
|
return C;
|
||
|
})();
|
||
|
|
||
|
|
||
|
//// [computedPropertyNamesDeclarationEmit2.d.ts]
|
||
|
declare class C {
|
||
|
}
|