30 lines
358 B
Text
30 lines
358 B
Text
|
=== tests/cases/compiler/nonConflictingRecursiveBaseTypeMembers.ts ===
|
||
|
interface A<T> {
|
||
|
>A : A<T>
|
||
|
>T : T
|
||
|
|
||
|
x: C<T>
|
||
|
>x : C<T>
|
||
|
>C : C
|
||
|
>T : T
|
||
|
}
|
||
|
|
||
|
interface B<T> {
|
||
|
>B : B<T>
|
||
|
>T : T
|
||
|
|
||
|
x: C<T>
|
||
|
>x : C<T>
|
||
|
>C : C
|
||
|
>T : T
|
||
|
}
|
||
|
|
||
|
interface C<T> extends A<T>, B<T> { } // Should not be an error
|
||
|
>C : C<T>
|
||
|
>T : T
|
||
|
>A : A
|
||
|
>T : T
|
||
|
>B : B
|
||
|
>T : T
|
||
|
|