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