2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/superWithTypeArgument3.ts(8,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/superWithTypeArgument3.ts(7,5): error TS2377: Constructors for derived classes must contain a 'super' call.
|
2014-09-12 22:35:07 +02:00
|
|
|
|
|
|
|
|
2014-11-29 23:51:25 +01:00
|
|
|
==== tests/cases/compiler/superWithTypeArgument3.ts (2 errors) ====
|
2014-07-13 01:04:16 +02:00
|
|
|
class C<T> {
|
|
|
|
foo: T;
|
|
|
|
bar<U>(x: U) { }
|
|
|
|
}
|
|
|
|
|
|
|
|
class D<T> extends C<T> {
|
|
|
|
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
|
|
|
bar() {
|
|
|
|
super.bar<T>(null);
|
|
|
|
}
|
|
|
|
}
|