2014-11-29 23:51:25 +01:00
|
|
|
tests/cases/compiler/superWithTypeArgument2.ts(6,5): error TS2377: Constructors for derived classes must contain a 'super' call.
|
2014-12-17 00:56:56 +01:00
|
|
|
tests/cases/compiler/superWithTypeArgument2.ts(7,14): error TS1034: 'super' must be followed by an argument list or member access.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/superWithTypeArgument2.ts (2 errors) ====
|
|
|
|
class C<T> {
|
|
|
|
foo: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
class D<T> extends C<T> {
|
|
|
|
constructor(x) {
|
2014-11-29 23:51:25 +01:00
|
|
|
~~~~~~~~~~~~~~~~
|
2014-07-13 01:04:16 +02:00
|
|
|
super<T>(x);
|
2014-12-17 00:56:56 +01:00
|
|
|
~~~~~~~~~~~~~~~~~~~~
|
2014-07-13 01:04:16 +02:00
|
|
|
~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS1034: 'super' must be followed by an argument list or member access.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|
2014-11-29 23:51:25 +01:00
|
|
|
~~~~~
|
|
|
|
!!! error TS2377: Constructors for derived classes must contain a 'super' call.
|
2014-07-13 01:04:16 +02:00
|
|
|
}
|