12 lines
271 B
TypeScript
12 lines
271 B
TypeScript
//// [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]
|