File: typedefCrossModule5.errors.txt

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (60 lines) | stat: -rw-r--r-- 2,511 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
tests/cases/conformance/jsdoc/mod1.js:1:23 - error TS2300: Duplicate identifier 'Foo'.

1 /** @typedef {number} Foo */
                        ~~~

  tests/cases/conformance/jsdoc/mod2.js:1:7
    1 class Foo { } // should error
            ~~~
    'Foo' was also declared here.
tests/cases/conformance/jsdoc/mod1.js:2:7 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.

2 class Bar {}
        ~~~

  tests/cases/conformance/jsdoc/mod2.js:2:7
    2 const Bar = 3;
            ~~~
    'Bar' was also declared here.
tests/cases/conformance/jsdoc/mod2.js:1:7 - error TS2300: Duplicate identifier 'Foo'.

1 class Foo { } // should error
        ~~~

  tests/cases/conformance/jsdoc/mod1.js:1:23
    1 /** @typedef {number} Foo */
                            ~~~
    'Foo' was also declared here.
tests/cases/conformance/jsdoc/mod2.js:2:7 - error TS2451: Cannot redeclare block-scoped variable 'Bar'.

2 const Bar = 3;
        ~~~

  tests/cases/conformance/jsdoc/mod1.js:2:7
    2 class Bar {}
            ~~~
    'Bar' was also declared here.


==== tests/cases/conformance/jsdoc/mod1.js (2 errors) ====
    /** @typedef {number} Foo */
                          ~~~
!!! error TS2300: Duplicate identifier 'Foo'.
!!! related TS6203 tests/cases/conformance/jsdoc/mod2.js:1:7: 'Foo' was also declared here.
    class Bar {}
          ~~~
!!! error TS2451: Cannot redeclare block-scoped variable 'Bar'.
!!! related TS6203 tests/cases/conformance/jsdoc/mod2.js:2:7: 'Bar' was also declared here.
    
==== tests/cases/conformance/jsdoc/mod2.js (2 errors) ====
    class Foo { } // should error
          ~~~
!!! error TS2300: Duplicate identifier 'Foo'.
!!! related TS6203 tests/cases/conformance/jsdoc/mod1.js:1:23: 'Foo' was also declared here.
    const Bar = 3;
          ~~~
!!! error TS2451: Cannot redeclare block-scoped variable 'Bar'.
!!! related TS6203 tests/cases/conformance/jsdoc/mod1.js:2:7: 'Bar' was also declared here.
    
Found 4 errors.