16 lines
217 B
JavaScript
16 lines
217 B
JavaScript
|
//// [recursiveTypeIdentity.ts]
|
||
|
interface A {
|
||
|
<T extends A>(x: T): void;
|
||
|
}
|
||
|
|
||
|
interface B {
|
||
|
<T extends B>(x: T): void;
|
||
|
}
|
||
|
|
||
|
interface C {
|
||
|
(x: A): void;
|
||
|
(x: B): void;
|
||
|
}
|
||
|
|
||
|
//// [recursiveTypeIdentity.js]
|