50 lines
2 KiB
Plaintext
50 lines
2 KiB
Plaintext
=== tests/cases/compiler/genericTypeWithMultipleBases3.ts ===
|
|
interface IA<T> {
|
|
>IA : Symbol(IA, Decl(genericTypeWithMultipleBases3.ts, 0, 0))
|
|
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 0, 13))
|
|
|
|
foo(x: T): T;
|
|
>foo : Symbol(foo, Decl(genericTypeWithMultipleBases3.ts, 0, 17))
|
|
>x : Symbol(x, Decl(genericTypeWithMultipleBases3.ts, 2, 4))
|
|
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 0, 13))
|
|
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 0, 13))
|
|
|
|
}
|
|
|
|
interface IB<T> {
|
|
>IB : Symbol(IB, Decl(genericTypeWithMultipleBases3.ts, 4, 1))
|
|
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 6, 13))
|
|
|
|
bar(x: T): T;
|
|
>bar : Symbol(bar, Decl(genericTypeWithMultipleBases3.ts, 6, 17))
|
|
>x : Symbol(x, Decl(genericTypeWithMultipleBases3.ts, 8, 4))
|
|
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 6, 13))
|
|
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 6, 13))
|
|
|
|
}
|
|
|
|
interface IC<T> extends IA<T>, IB<T> { }
|
|
>IC : Symbol(IC, Decl(genericTypeWithMultipleBases3.ts, 10, 1))
|
|
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 12, 13))
|
|
>IA : Symbol(IA, Decl(genericTypeWithMultipleBases3.ts, 0, 0))
|
|
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 12, 13))
|
|
>IB : Symbol(IB, Decl(genericTypeWithMultipleBases3.ts, 4, 1))
|
|
>T : Symbol(T, Decl(genericTypeWithMultipleBases3.ts, 12, 13))
|
|
|
|
var c: IC<number>;
|
|
>c : Symbol(c, Decl(genericTypeWithMultipleBases3.ts, 14, 3))
|
|
>IC : Symbol(IC, Decl(genericTypeWithMultipleBases3.ts, 10, 1))
|
|
|
|
var x = c.foo;
|
|
>x : Symbol(x, Decl(genericTypeWithMultipleBases3.ts, 16, 3))
|
|
>c.foo : Symbol(IA.foo, Decl(genericTypeWithMultipleBases3.ts, 0, 17))
|
|
>c : Symbol(c, Decl(genericTypeWithMultipleBases3.ts, 14, 3))
|
|
>foo : Symbol(IA.foo, Decl(genericTypeWithMultipleBases3.ts, 0, 17))
|
|
|
|
var y = c.bar;
|
|
>y : Symbol(y, Decl(genericTypeWithMultipleBases3.ts, 18, 3))
|
|
>c.bar : Symbol(IB.bar, Decl(genericTypeWithMultipleBases3.ts, 6, 17))
|
|
>c : Symbol(c, Decl(genericTypeWithMultipleBases3.ts, 14, 3))
|
|
>bar : Symbol(IB.bar, Decl(genericTypeWithMultipleBases3.ts, 6, 17))
|
|
|