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

20 lines
728 B
Plaintext
Raw Normal View History

tests/cases/compiler/superWithTypeArgument2.ts(6,5): error TS2377: Constructors for derived classes must contain a 'super' call.
tests/cases/compiler/superWithTypeArgument2.ts(7,14): error TS1034: 'super' must be followed by an argument list or member access.
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-07-13 01:04:16 +02:00
super<T>(x);
~~~~~~~~~~~~~~~~~~~~
2014-07-13 01:04:16 +02:00
~
!!! error TS1034: 'super' must be followed by an argument list or member access.
2014-07-13 01:04:16 +02:00
}
~~~~~
!!! error TS2377: Constructors for derived classes must contain a 'super' call.
2014-07-13 01:04:16 +02:00
}