31 lines
1,022 B
TypeScript
31 lines
1,022 B
TypeScript
//// [shadowPrivateMembers.ts]
|
|
class base { private n() {} }
|
|
class derived extends base { private n() {} }
|
|
|
|
|
|
//// [shadowPrivateMembers.js]
|
|
var __extends = (this && this.__extends) || (function () {
|
|
var extendStatics = Object.setPrototypeOf ||
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
return function (d, b) {
|
|
extendStatics(d, b);
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
var base = (function () {
|
|
function base() {
|
|
}
|
|
base.prototype.n = function () { };
|
|
return base;
|
|
}());
|
|
var derived = (function (_super) {
|
|
__extends(derived, _super);
|
|
function derived() {
|
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
}
|
|
derived.prototype.n = function () { };
|
|
return derived;
|
|
}(base));
|