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

24 lines
811 B
Plaintext
Raw Normal View History

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