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
|
=== tests/cases/compiler/infinitelyGenerativeInheritance1.ts ===
interface Stack<T> {
>Stack : Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0))
>T : Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 0, 16))
pop(): T
>pop : Symbol(Stack.pop, Decl(infinitelyGenerativeInheritance1.ts, 0, 20))
>T : Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 0, 16))
zip<S>(a: Stack<S>): Stack<{ x: T; y: S }>
>zip : Symbol(Stack.zip, Decl(infinitelyGenerativeInheritance1.ts, 1, 14))
>S : Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 2, 10))
>a : Symbol(a, Decl(infinitelyGenerativeInheritance1.ts, 2, 13))
>Stack : Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0))
>S : Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 2, 10))
>Stack : Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0))
>x : Symbol(x, Decl(infinitelyGenerativeInheritance1.ts, 2, 34))
>T : Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 0, 16))
>y : Symbol(y, Decl(infinitelyGenerativeInheritance1.ts, 2, 40))
>S : Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 2, 10))
}
interface MyStack<T> extends Stack<T> {
>MyStack : Symbol(MyStack, Decl(infinitelyGenerativeInheritance1.ts, 3, 1))
>T : Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 5, 18))
>Stack : Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0))
>T : Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 5, 18))
zip<S>(a: Stack<S>): Stack<{ x: T; y: S }>
>zip : Symbol(MyStack.zip, Decl(infinitelyGenerativeInheritance1.ts, 5, 39))
>S : Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 6, 10))
>a : Symbol(a, Decl(infinitelyGenerativeInheritance1.ts, 6, 13))
>Stack : Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0))
>S : Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 6, 10))
>Stack : Symbol(Stack, Decl(infinitelyGenerativeInheritance1.ts, 0, 0))
>x : Symbol(x, Decl(infinitelyGenerativeInheritance1.ts, 6, 34))
>T : Symbol(T, Decl(infinitelyGenerativeInheritance1.ts, 5, 18))
>y : Symbol(y, Decl(infinitelyGenerativeInheritance1.ts, 6, 40))
>S : Symbol(S, Decl(infinitelyGenerativeInheritance1.ts, 6, 10))
}
|