32 lines
343 B
Text
32 lines
343 B
Text
=== tests/cases/compiler/recursiveTypeIdentity.ts ===
|
|
interface A {
|
|
>A : A
|
|
|
|
<T extends A>(x: T): void;
|
|
>T : T
|
|
>A : A
|
|
>x : T
|
|
>T : T
|
|
}
|
|
|
|
interface B {
|
|
>B : B
|
|
|
|
<T extends B>(x: T): void;
|
|
>T : T
|
|
>B : B
|
|
>x : T
|
|
>T : T
|
|
}
|
|
|
|
interface C {
|
|
>C : C
|
|
|
|
(x: A): void;
|
|
>x : A
|
|
>A : A
|
|
|
|
(x: B): void;
|
|
>x : B
|
|
>B : B
|
|
}
|