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

7 lines
304 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/inheritFromGenericTypeParameter.ts (2 errors) ====
class C<T> extends T { }
~
!!! A class may only extend another class.
interface I<T> extends T { }
~
!!! An interface may only extend a class or another interface.