TypeScript/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js
Ron Buckton 3fdd2342e6 Merge branch 'master' into fix/helpers/use-hasownproperty-call
# Conflicts:
#	tests/baselines/reference/tsbuild/sample1/incremental-declaration-changes/when-esModuleInterop-option-changes.js
#	tests/baselines/reference/tsc/declarationEmit/initial-build/when-pkg-references-sibling-package-through-indirect-symlink.js
2020-07-09 14:57:20 -07:00

52 lines
1.4 KiB
TypeScript

//// [inheritanceMemberPropertyOverridingAccessor.ts]
class a {
private __x: () => string;
get x() {
return this.__x;
}
set x(aValue: () => string) {
this.__x = aValue;
}
}
class b extends a {
x: () => string;
}
//// [inheritanceMemberPropertyOverridingAccessor.js]
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
var a = /** @class */ (function () {
function a() {
}
Object.defineProperty(a.prototype, "x", {
get: function () {
return this.__x;
},
set: function (aValue) {
this.__x = aValue;
},
enumerable: false,
configurable: true
});
return a;
}());
var b = /** @class */ (function (_super) {
__extends(b, _super);
function b() {
return _super !== null && _super.apply(this, arguments) || this;
}
return b;
}(a));