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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
//// [mergedInterfacesWithMultipleBases3.ts]
// merged interfaces behave as if all extends clauses from each declaration are merged together
// no errors expected
class C<T> {
a: T;
}
class C2<T> {
b: T;
}
class C3<T> {
c: T;
}
class C4<T> {
d: T;
}
interface A<T> extends C<string>, C3<string> {
y: T;
}
interface A<T> extends C<string>, C4<string> {
z: T;
}
class D implements A<boolean> {
a: string;
b: Date;
c: string;
d: string;
y: boolean;
z: boolean;
}
//// [mergedInterfacesWithMultipleBases3.js]
// merged interfaces behave as if all extends clauses from each declaration are merged together
// no errors expected
var C = /** @class */ (function () {
function C() {
}
return C;
}());
var C2 = /** @class */ (function () {
function C2() {
}
return C2;
}());
var C3 = /** @class */ (function () {
function C3() {
}
return C3;
}());
var C4 = /** @class */ (function () {
function C4() {
}
return C4;
}());
var D = /** @class */ (function () {
function D() {
}
return D;
}());
|