2015-01-21 03:29:04 +01:00
|
|
|
//// [computedPropertyNamesDeclarationEmit1.ts]
|
|
|
|
class C {
|
|
|
|
["" + ""]() { }
|
|
|
|
get ["" + ""]() { return 0; }
|
|
|
|
set ["" + ""](x) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [computedPropertyNamesDeclarationEmit1.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
2015-02-07 03:45:09 +01:00
|
|
|
C.prototype["" + ""] = function () { };
|
2015-01-21 03:29:04 +01:00
|
|
|
Object.defineProperty(C.prototype, "" + "", {
|
|
|
|
get: function () {
|
|
|
|
return 0;
|
|
|
|
},
|
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C.prototype, "" + "", {
|
2015-02-07 03:45:09 +01:00
|
|
|
set: function (x) { },
|
2015-01-21 03:29:04 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return C;
|
|
|
|
})();
|
|
|
|
|
|
|
|
|
|
|
|
//// [computedPropertyNamesDeclarationEmit1.d.ts]
|
|
|
|
declare class C {
|
|
|
|
}
|