Files
tsgo/testdata/baselines/reference/submoduleAccepted/compiler/duplicateIdentifierRelatedSpans1.errors.txt.diff

3.4 KiB

--- old.duplicateIdentifierRelatedSpans1.errors.txt
+++ new.duplicateIdentifierRelatedSpans1.errors.txt
@@= skipped -2, +2 lines =@@
1 class Foo { }
~~~
 
- file2.ts:1:6
+ file2.ts:1:6 - 'Foo' was also declared here.
1 type Foo = number;
~~~
- 'Foo' was also declared here.
- file3.ts:1:6
+
+ file3.ts:1:6 - 'Foo' was also declared here.
1 type Foo = 54;
~~~
- and here.
+
file1.ts:2:7 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.
 
2 const Bar = 3;
~~~
 
- file2.ts:2:7
+ file2.ts:2:7 - 'Bar' was also declared here.
2 class Bar {}
~~~
- 'Bar' was also declared here.
- file3.ts:2:5
+
+ file3.ts:2:5 - 'Bar' was also declared here.
2 let Bar = 42
~~~
- and here.
+
file2.ts:1:6 - error TS2300: Duplicate identifier 'Foo'.
 
1 type Foo = number;
~~~
 
- file1.ts:1:7
+ file1.ts:1:7 - 'Foo' was also declared here.
1 class Foo { }
~~~
- 'Foo' was also declared here.
+
file2.ts:2:7 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.
 
2 class Bar {}
~~~
 
- file1.ts:2:7
+ file1.ts:2:7 - 'Bar' was also declared here.
2 const Bar = 3;
~~~
- 'Bar' was also declared here.
+
file3.ts:1:6 - error TS2300: Duplicate identifier 'Foo'.
 
1 type Foo = 54;
~~~
 
- file1.ts:1:7
+ file1.ts:1:7 - 'Foo' was also declared here.
1 class Foo { }
~~~
- 'Foo' was also declared here.
+
file3.ts:2:5 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.
 
2 let Bar = 42
~~~
 
- file1.ts:2:7
+ file1.ts:2:7 - 'Bar' was also declared here.
2 const Bar = 3;
~~~
- 'Bar' was also declared here.
 
 
==== file1.ts (2 errors) ====
@@= skipped -64, +63 lines =@@
~~~
!!! error TS2300: Duplicate identifier 'Foo'.
!!! related TS6203 file2.ts:1:6: 'Foo' was also declared here.
-!!! related TS6204 file3.ts:1:6: and here.
+!!! related TS6203 file3.ts:1:6: 'Foo' was also declared here.
const Bar = 3;
~~~
!!! error TS2451: Cannot redeclare block-scoped variable 'Bar'.
!!! related TS6203 file2.ts:2:7: 'Bar' was also declared here.
-!!! related TS6204 file3.ts:2:5: and here.
+!!! related TS6203 file3.ts:2:5: 'Bar' was also declared here.
==== file2.ts (2 errors) ====
type Foo = number;
~~~
@@= skipped -31, +31 lines =@@
2 file1.ts:1
2 file2.ts:1
2 file3.ts:1
+