1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
//// [classExtendsInterfaceThatExtendsClassWithPrivates1.ts]
class C {
public foo(x: any) { return x; }
private x = 1;
}
interface I extends C {
other(x: any): any;
}
class D2 implements I {
public foo(x: any) { return x }
private x = 3;
other(x: any) { return x }
}
//// [classExtendsInterfaceThatExtendsClassWithPrivates1.js]
var C = /** @class */ (function () {
function C() {
this.x = 1;
}
C.prototype.foo = function (x) { return x; };
return C;
}());
var D2 = /** @class */ (function () {
function D2() {
this.x = 3;
}
D2.prototype.foo = function (x) { return x; };
D2.prototype.other = function (x) { return x; };
return D2;
}());
|