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

14 lines
673 B
Plaintext
Raw Normal View History

tests/cases/compiler/assertInWrapSomeTypeParameter.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
tests/cases/compiler/assertInWrapSomeTypeParameter.ts(2,26): error TS1005: '>' expected.
2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/assertInWrapSomeTypeParameter.ts (2 errors) ====
class C<T extends C<T>> {
~~~~~~~~~~~~~~
!!! 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
foo<U extends C<C<T>>(x: U) {
~
!!! error TS1005: '>' expected.
2014-07-13 01:04:16 +02:00
return null;
}
}