TypeScript/tests/cases/compiler/infinitelyGenerativeInheritance1.ts
2014-07-12 17:30:19 -07:00

9 lines
187 B
TypeScript

interface Stack<T> {
pop(): T
zip<S>(a: Stack<S>): Stack<{ x: T; y: S }>
}
interface MyStack<T> extends Stack<T> {
zip<S>(a: Stack<S>): Stack<{ x: T; y: S }>
}