2014-09-12 22:35:07 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/inheritFromGenericTypeParameter.ts (2 errors) ====
|
|
|
|
class C<T> extends T { }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2311: A class may only extend another class.
|
2014-07-13 01:04:16 +02:00
|
|
|
interface I<T> extends T { }
|
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2312: An interface may only extend a class or another interface.
|