2015-02-03 00:15:54 +01:00
|
|
|
//// [accessorWithInitializer.ts]
|
|
|
|
|
|
|
|
class C {
|
|
|
|
set X(v = 0) { }
|
|
|
|
static set X(v2 = 0) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [accessorWithInitializer.js]
|
|
|
|
var C = (function () {
|
|
|
|
function C() {
|
|
|
|
}
|
|
|
|
Object.defineProperty(C.prototype, "X", {
|
2015-02-23 21:31:40 +01:00
|
|
|
set: function (v) {
|
|
|
|
if (v === void 0) { v = 0; }
|
|
|
|
},
|
2015-02-03 00:15:54 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
Object.defineProperty(C, "X", {
|
2015-02-23 21:31:40 +01:00
|
|
|
set: function (v2) {
|
|
|
|
if (v2 === void 0) { v2 = 0; }
|
|
|
|
},
|
2015-02-03 00:15:54 +01:00
|
|
|
enumerable: true,
|
|
|
|
configurable: true
|
|
|
|
});
|
|
|
|
return C;
|
|
|
|
})();
|