mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
3.4 KiB
3.4 KiB
file1.ts:1:7 - error TS2300: Duplicate identifier 'Foo'.
1 class Foo { }
~~~
file2.ts:1:6 - 'Foo' was also declared here.
1 type Foo = number;
~~~
file3.ts:1:6 - 'Foo' was also declared here.
1 type Foo = 54;
~~~
file1.ts:2:7 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.
2 const Bar = 3;
~~~
file2.ts:2:7 - 'Bar' was also declared here.
2 class Bar {}
~~~
file3.ts:2:5 - 'Bar' was also declared here.
2 let Bar = 42
~~~
file2.ts:1:6 - error TS2300: Duplicate identifier 'Foo'.
1 type Foo = number;
~~~
file1.ts:1:7 - 'Foo' was also declared here.
1 class Foo { }
~~~
file2.ts:2:7 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.
2 class Bar {}
~~~
file1.ts:2:7 - 'Bar' was also declared here.
2 const Bar = 3;
~~~
file3.ts:1:6 - error TS2300: Duplicate identifier 'Foo'.
1 type Foo = 54;
~~~
file1.ts:1:7 - 'Foo' was also declared here.
1 class Foo { }
~~~
file3.ts:2:5 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.
2 let Bar = 42
~~~
file1.ts:2:7 - 'Bar' was also declared here.
2 const Bar = 3;
~~~
==== file1.ts (2 errors) ====
class Foo { }
~~~
!!! error TS2300: Duplicate identifier 'Foo'.
!!! related TS6203 file2.ts:1:6: 'Foo' was also declared 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 TS6203 file3.ts:2:5: 'Bar' was also declared here.
==== file2.ts (2 errors) ====
type Foo = number;
~~~
!!! error TS2300: Duplicate identifier 'Foo'.
!!! related TS6203 file1.ts:1:7: 'Foo' was also declared here.
class Bar {}
~~~
!!! error TS2451: Cannot redeclare block-scoped variable 'Bar'.
!!! related TS6203 file1.ts:2:7: 'Bar' was also declared here.
==== file3.ts (2 errors) ====
type Foo = 54;
~~~
!!! error TS2300: Duplicate identifier 'Foo'.
!!! related TS6203 file1.ts:1:7: 'Foo' was also declared here.
let Bar = 42
~~~
!!! error TS2451: Cannot redeclare block-scoped variable 'Bar'.
!!! related TS6203 file1.ts:2:7: 'Bar' was also declared here.
Found 6 errors in 3 files.
Errors Files
2 file1.ts:1
2 file2.ts:1
2 file3.ts:1
1 class Foo { }
~~~
file2.ts:1:6 - 'Foo' was also declared here.
1 type Foo = number;
~~~
file3.ts:1:6 - 'Foo' was also declared here.
1 type Foo = 54;
~~~
file1.ts:2:7 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.
2 const Bar = 3;
~~~
file2.ts:2:7 - 'Bar' was also declared here.
2 class Bar {}
~~~
file3.ts:2:5 - 'Bar' was also declared here.
2 let Bar = 42
~~~
file2.ts:1:6 - error TS2300: Duplicate identifier 'Foo'.
1 type Foo = number;
~~~
file1.ts:1:7 - 'Foo' was also declared here.
1 class Foo { }
~~~
file2.ts:2:7 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.
2 class Bar {}
~~~
file1.ts:2:7 - 'Bar' was also declared here.
2 const Bar = 3;
~~~
file3.ts:1:6 - error TS2300: Duplicate identifier 'Foo'.
1 type Foo = 54;
~~~
file1.ts:1:7 - 'Foo' was also declared here.
1 class Foo { }
~~~
file3.ts:2:5 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.
2 let Bar = 42
~~~
file1.ts:2:7 - 'Bar' was also declared here.
2 const Bar = 3;
~~~
==== file1.ts (2 errors) ====
class Foo { }
~~~
!!! error TS2300: Duplicate identifier 'Foo'.
!!! related TS6203 file2.ts:1:6: 'Foo' was also declared 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 TS6203 file3.ts:2:5: 'Bar' was also declared here.
==== file2.ts (2 errors) ====
type Foo = number;
~~~
!!! error TS2300: Duplicate identifier 'Foo'.
!!! related TS6203 file1.ts:1:7: 'Foo' was also declared here.
class Bar {}
~~~
!!! error TS2451: Cannot redeclare block-scoped variable 'Bar'.
!!! related TS6203 file1.ts:2:7: 'Bar' was also declared here.
==== file3.ts (2 errors) ====
type Foo = 54;
~~~
!!! error TS2300: Duplicate identifier 'Foo'.
!!! related TS6203 file1.ts:1:7: 'Foo' was also declared here.
let Bar = 42
~~~
!!! error TS2451: Cannot redeclare block-scoped variable 'Bar'.
!!! related TS6203 file1.ts:2:7: 'Bar' was also declared here.
Found 6 errors in 3 files.
Errors Files
2 file1.ts:1
2 file2.ts:1
2 file3.ts:1