f1a2e41a8a
This was we don't get noisy baselines just because a different phase of the compiler reported the diagnostic. This helps with Yui's refactoring work to move grammar checks into the type checker.
20 lines
No EOL
728 B
Text
20 lines
No EOL
728 B
Text
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.
|
|
|
|
|
|
==== tests/cases/compiler/superWithTypeArgument2.ts (2 errors) ====
|
|
class C<T> {
|
|
foo: T;
|
|
}
|
|
|
|
class D<T> extends C<T> {
|
|
constructor(x) {
|
|
~~~~~~~~~~~~~~~~
|
|
super<T>(x);
|
|
~~~~~~~~~~~~~~~~~~~~
|
|
~
|
|
!!! error TS1034: 'super' must be followed by an argument list or member access.
|
|
}
|
|
~~~~~
|
|
!!! error TS2377: Constructors for derived classes must contain a 'super' call.
|
|
} |