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