91 lines
1.6 KiB
TypeScript
91 lines
1.6 KiB
TypeScript
//// [accessorWithMismatchedAccessibilityModifiers.ts]
|
|
|
|
class C {
|
|
get x() {
|
|
return 1;
|
|
}
|
|
private set x(v) {
|
|
}
|
|
}
|
|
|
|
class D {
|
|
protected get x() {
|
|
return 1;
|
|
}
|
|
private set x(v) {
|
|
}
|
|
}
|
|
|
|
class E {
|
|
protected set x(v) {
|
|
}
|
|
get x() {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
class F {
|
|
protected static set x(v) {
|
|
}
|
|
static get x() {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
//// [accessorWithMismatchedAccessibilityModifiers.js]
|
|
var C = (function () {
|
|
function C() {
|
|
}
|
|
Object.defineProperty(C.prototype, "x", {
|
|
get: function () {
|
|
return 1;
|
|
},
|
|
set: function (v) {
|
|
},
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
return C;
|
|
})();
|
|
var D = (function () {
|
|
function D() {
|
|
}
|
|
Object.defineProperty(D.prototype, "x", {
|
|
get: function () {
|
|
return 1;
|
|
},
|
|
set: function (v) {
|
|
},
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
return D;
|
|
})();
|
|
var E = (function () {
|
|
function E() {
|
|
}
|
|
Object.defineProperty(E.prototype, "x", {
|
|
get: function () {
|
|
return 1;
|
|
},
|
|
set: function (v) {
|
|
},
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
return E;
|
|
})();
|
|
var F = (function () {
|
|
function F() {
|
|
}
|
|
Object.defineProperty(F, "x", {
|
|
get: function () {
|
|
return 1;
|
|
},
|
|
set: function (v) {
|
|
},
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
return F;
|
|
})();
|