TypeScript/tests/baselines/reference/superWithTypeArgument.errors.txt
Cyrus Najmabadi 13f319b6ec Add a lot of clarifying comments in the parser.
Simplify parser and avoid the need to pass around 'inNewExpression' information.

Make error span smaller for "new Foo[]" errors.
2014-11-29 14:51:25 -08:00

20 lines
708 B
Plaintext

tests/cases/compiler/superWithTypeArgument.ts(7,14): error TS1034: 'super' must be followed by an argument list or member access.
tests/cases/compiler/superWithTypeArgument.ts(6,5): error TS2377: Constructors for derived classes must contain a 'super' call.
==== tests/cases/compiler/superWithTypeArgument.ts (2 errors) ====
class C {
}
class D<T> extends C {
constructor() {
~~~~~~~~~~~~~~~
super<T>();
~
!!! error TS1034: 'super' must be followed by an argument list or member access.
~~~~~~~~~~~~~~~~~~~
}
~~~~~
!!! error TS2377: Constructors for derived classes must contain a 'super' call.
}