TypeScript/tests/baselines/reference/instantiatedBaseTypeConstraints2.errors.txt

11 lines
879 B
Plaintext
Raw Normal View History

tests/cases/compiler/instantiatedBaseTypeConstraints2.ts(1,13): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
tests/cases/compiler/instantiatedBaseTypeConstraints2.ts(1,32): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/instantiatedBaseTypeConstraints2.ts (2 errors) ====
interface A<T extends A<T, S>, S extends A<T, S>> { }
~~~~~~~~~~~~~~~~~
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
2014-07-13 01:04:16 +02:00
~~~~~~~~~~~~~~~~~
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
2014-07-13 01:04:16 +02:00
interface B<U> extends A<B<U>, B<U>> { }