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