2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/genericTypeWithMultipleBases2.ts ===
|
|
|
|
export interface I1 {
|
2015-04-13 23:01:57 +02:00
|
|
|
>I1 : I1, Symbol(I1, Decl(genericTypeWithMultipleBases2.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
m1: () => void;
|
2015-04-13 23:01:57 +02:00
|
|
|
>m1 : () => void, Symbol(m1, Decl(genericTypeWithMultipleBases2.ts, 0, 21))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface I2 {
|
2015-04-13 23:01:57 +02:00
|
|
|
>I2 : I2, Symbol(I2, Decl(genericTypeWithMultipleBases2.ts, 2, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
m2: () => void;
|
2015-04-13 23:01:57 +02:00
|
|
|
>m2 : () => void, Symbol(m2, Decl(genericTypeWithMultipleBases2.ts, 4, 21))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface I3<T> extends I2, I1 {
|
2015-04-13 23:01:57 +02:00
|
|
|
>I3 : I3<T>, Symbol(I3, Decl(genericTypeWithMultipleBases2.ts, 6, 1))
|
|
|
|
>T : T, Symbol(T, Decl(genericTypeWithMultipleBases2.ts, 8, 20))
|
|
|
|
>I2 : I2, Symbol(I2, Decl(genericTypeWithMultipleBases2.ts, 2, 1))
|
|
|
|
>I1 : I1, Symbol(I1, Decl(genericTypeWithMultipleBases2.ts, 0, 0))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
p1: T;
|
2015-04-13 23:01:57 +02:00
|
|
|
>p1 : T, Symbol(p1, Decl(genericTypeWithMultipleBases2.ts, 8, 39))
|
|
|
|
>T : T, Symbol(T, Decl(genericTypeWithMultipleBases2.ts, 8, 20))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var x: I3<number>;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x : I3<number>, Symbol(x, Decl(genericTypeWithMultipleBases2.ts, 12, 3))
|
|
|
|
>I3 : I3<T>, Symbol(I3, Decl(genericTypeWithMultipleBases2.ts, 6, 1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.p1;
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.p1 : number, Symbol(I3.p1, Decl(genericTypeWithMultipleBases2.ts, 8, 39))
|
|
|
|
>x : I3<number>, Symbol(x, Decl(genericTypeWithMultipleBases2.ts, 12, 3))
|
|
|
|
>p1 : number, Symbol(I3.p1, Decl(genericTypeWithMultipleBases2.ts, 8, 39))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.m1();
|
|
|
|
>x.m1() : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.m1 : () => void, Symbol(I1.m1, Decl(genericTypeWithMultipleBases2.ts, 0, 21))
|
|
|
|
>x : I3<number>, Symbol(x, Decl(genericTypeWithMultipleBases2.ts, 12, 3))
|
|
|
|
>m1 : () => void, Symbol(I1.m1, Decl(genericTypeWithMultipleBases2.ts, 0, 21))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
x.m2();
|
|
|
|
>x.m2() : void
|
2015-04-13 23:01:57 +02:00
|
|
|
>x.m2 : () => void, Symbol(I2.m2, Decl(genericTypeWithMultipleBases2.ts, 4, 21))
|
|
|
|
>x : I3<number>, Symbol(x, Decl(genericTypeWithMultipleBases2.ts, 12, 3))
|
|
|
|
>m2 : () => void, Symbol(I2.m2, Decl(genericTypeWithMultipleBases2.ts, 4, 21))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
|