TypeScript/tests/baselines/reference/assertInWrapSomeTypeParameter.errors.txt
Cyrus Najmabadi f1a2e41a8a Sort diagnostics in our baseline output.
This was we don't get noisy baselines just because a different phase of the compiler reported
the diagnostic.

This helps with Yui's refactoring work to move grammar checks into the type checker.
2014-12-16 15:56:56 -08:00

14 lines
673 B
Plaintext

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.
==== 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.
foo<U extends C<C<T>>(x: U) {
~
!!! error TS1005: '>' expected.
return null;
}
}