7 lines
390 B
Plaintext
7 lines
390 B
Plaintext
==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint4.ts (2 errors) ====
|
|
class C<T extends List<List<T> > > {
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
|
|
~~~~~~~~~~~~~~
|
|
!!! error TS2304: Cannot find name 'List'.
|
|
} |