TypeScript/tests/baselines/reference/twoAccessorsWithSameName2.js
2015-02-06 18:45:09 -08:00

55 lines
1 KiB
JavaScript

//// [twoAccessorsWithSameName2.ts]
class C {
static get x() { return 1; }
static get x() { return 1; } // error
}
class D {
static set x(v) { }
static set x(v) { } // error
}
class E {
static get x() {
return 1;
}
static set x(v) { }
}
//// [twoAccessorsWithSameName2.js]
var C = (function () {
function C() {
}
Object.defineProperty(C, "x", {
get: function () {
return 1;
},
enumerable: true,
configurable: true
});
return C;
})();
var D = (function () {
function D() {
}
Object.defineProperty(D, "x", {
set: function (v) { },
enumerable: true,
configurable: true
});
return D;
})();
var E = (function () {
function E() {
}
Object.defineProperty(E, "x", {
get: function () {
return 1;
},
set: function (v) { },
enumerable: true,
configurable: true
});
return E;
})();