TypeScript/tests/baselines/reference/infinitelyGenerativeInheritance1.js

13 lines
271 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [infinitelyGenerativeInheritance1.ts]
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 }>
}
//// [infinitelyGenerativeInheritance1.js]