File: unknownSymbols2.errors.txt

package info (click to toggle)
node-typescript 5.0.4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 459,140 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (63 lines) | stat: -rw-r--r-- 2,256 bytes parent folder | download | duplicates (7)
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
61
62
63
tests/cases/compiler/unknownSymbols2.ts(2,12): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols2.ts(3,17): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols2.ts(4,14): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols2.ts(5,9): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols2.ts(7,14): error TS2304: Cannot find name 'qwerty'.
tests/cases/compiler/unknownSymbols2.ts(15,13): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols2.ts(16,14): error TS2304: Cannot find name 'qwerty'.
tests/cases/compiler/unknownSymbols2.ts(22,19): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols2.ts(23,32): error TS2304: Cannot find name 'qwerty'.
tests/cases/compiler/unknownSymbols2.ts(29,16): error TS2503: Cannot find namespace 'asdf'.


==== tests/cases/compiler/unknownSymbols2.ts (10 errors) ====
    module M {
        var x: asdf;
               ~~~~
!!! error TS2304: Cannot find name 'asdf'.
        var y = x + asdf;
                    ~~~~
!!! error TS2304: Cannot find name 'asdf'.
        var z = <asdf>x; // should be an error
                 ~~~~
!!! error TS2304: Cannot find name 'asdf'.
        if (asdf) {
            ~~~~
!!! error TS2304: Cannot find name 'asdf'.
        }
        else if (qwerty) {
                 ~~~~~~
!!! error TS2304: Cannot find name 'qwerty'.
        }
    
        try {
        }
        catch (asdf) { // no error
        }
    
        switch (asdf) {
                ~~~~
!!! error TS2304: Cannot find name 'asdf'.
            case qwerty:
                 ~~~~~~
!!! error TS2304: Cannot find name 'qwerty'.
                break;
            default:
                break;
        }
    
        var a = () => asdf;
                      ~~~~
!!! error TS2304: Cannot find name 'asdf'.
        var b = (asdf) => { return qwerty };
                                   ~~~~~~
!!! error TS2304: Cannot find name 'qwerty'.
    
        module N {
            var x = 1;
        }
        import c = N;
        import d = asdf;
                   ~~~~
!!! error TS2503: Cannot find namespace 'asdf'.
    }