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.
10 lines
No EOL
399 B
Text
10 lines
No EOL
399 B
Text
tests/cases/compiler/badArrayIndex.ts(1,15): error TS2304: Cannot find name 'number'.
|
|
tests/cases/compiler/badArrayIndex.ts(1,22): error TS1109: Expression expected.
|
|
|
|
|
|
==== tests/cases/compiler/badArrayIndex.ts (2 errors) ====
|
|
var results = number[];
|
|
~~~~~~
|
|
!!! error TS2304: Cannot find name 'number'.
|
|
~
|
|
!!! error TS1109: Expression expected. |