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.
11 lines
No EOL
480 B
Text
11 lines
No EOL
480 B
Text
tests/cases/compiler/emptyGenericParamList.ts(2,8): error TS2314: Generic type 'I<T>' requires 1 type argument(s).
|
|
tests/cases/compiler/emptyGenericParamList.ts(2,9): error TS1099: Type argument list cannot be empty.
|
|
|
|
|
|
==== tests/cases/compiler/emptyGenericParamList.ts (2 errors) ====
|
|
class I<T> {}
|
|
var x: I<>;
|
|
~~~
|
|
!!! error TS2314: Generic type 'I<T>' requires 1 type argument(s).
|
|
~~
|
|
!!! error TS1099: Type argument list cannot be empty. |