TypeScript/tests/baselines/reference/inheritFromGenericTypeParameter.errors.txt
2014-09-12 13:35:07 -07:00

11 lines
590 B
Plaintext

tests/cases/compiler/inheritFromGenericTypeParameter.ts(1,20): error TS2311: A class may only extend another class.
tests/cases/compiler/inheritFromGenericTypeParameter.ts(2,24): error TS2312: An interface may only extend a class or another interface.
==== tests/cases/compiler/inheritFromGenericTypeParameter.ts (2 errors) ====
class C<T> extends T { }
~
!!! error TS2311: A class may only extend another class.
interface I<T> extends T { }
~
!!! error TS2312: An interface may only extend a class or another interface.