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

11 lines
711 B
Plaintext
Raw Normal View History

tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint7.ts(1,9): error TS2313: Constraint of a type parameter cannot reference any type parameter from the same type parameter list.
tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint7.ts(1,19): error TS2304: Cannot find name 'List'.
2014-07-13 01:04:16 +02:00
==== tests/cases/conformance/parser/ecmascript5/Generics/parserGenericConstraint7.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.
2015-03-02 21:21:53 +01:00
~~~~
!!! error TS2304: Cannot find name 'List'.
2014-07-13 01:04:16 +02:00
}