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.
18 lines
No EOL
705 B
Text
18 lines
No EOL
705 B
Text
tests/cases/compiler/es6ClassTest9.ts(1,15): error TS2300: Duplicate identifier 'foo'.
|
|
tests/cases/compiler/es6ClassTest9.ts(1,18): error TS1005: '{' expected.
|
|
tests/cases/compiler/es6ClassTest9.ts(1,19): error TS1109: Expression expected.
|
|
tests/cases/compiler/es6ClassTest9.ts(2,10): error TS2300: Duplicate identifier 'foo'.
|
|
|
|
|
|
==== tests/cases/compiler/es6ClassTest9.ts (4 errors) ====
|
|
declare class foo();
|
|
~~~
|
|
!!! error TS2300: Duplicate identifier 'foo'.
|
|
~
|
|
!!! error TS1005: '{' expected.
|
|
~
|
|
!!! error TS1109: Expression expected.
|
|
function foo() {}
|
|
~~~
|
|
!!! error TS2300: Duplicate identifier 'foo'.
|
|
|