TypeScript/tests/baselines/reference/interfaceWithPropertyThatIsPrivateInBaseType2.js
2014-07-12 17:30:19 -07:00

33 lines
569 B
JavaScript

//// [interfaceWithPropertyThatIsPrivateInBaseType2.ts]
class Base {
private x() {}
}
interface Foo extends Base { // error
x(): any;
}
class Base2<T> {
private x() { }
}
interface Foo2<T> extends Base2<T> { // error
x(): any;
}
//// [interfaceWithPropertyThatIsPrivateInBaseType2.js]
var Base = (function () {
function Base() {
}
Base.prototype.x = function () {
};
return Base;
})();
var Base2 = (function () {
function Base2() {
}
Base2.prototype.x = function () {
};
return Base2;
})();