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.
14 lines
No EOL
673 B
Text
14 lines
No EOL
673 B
Text
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;
|
|
}
|
|
} |