File: unknownSymbols1.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 (74 lines) | stat: -rw-r--r-- 2,772 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
64
65
66
67
68
69
70
71
72
73
74
tests/cases/compiler/unknownSymbols1.ts(1,9): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols1.ts(2,8): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols1.ts(4,17): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols1.ts(4,35): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols1.ts(6,12): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols1.ts(9,10): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols1.ts(12,10): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols1.ts(13,12): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols1.ts(16,21): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols1.ts(17,21): error TS2304: Cannot find name 'adsf'.
tests/cases/compiler/unknownSymbols1.ts(22,15): error TS2304: Cannot find name 'asdf'.
tests/cases/compiler/unknownSymbols1.ts(30,14): error TS2339: Property 'asdf' does not exist on type 'C5'.
tests/cases/compiler/unknownSymbols1.ts(30,21): error TS2304: Cannot find name 'asdf'.


==== tests/cases/compiler/unknownSymbols1.ts (13 errors) ====
    var x = asdf;
            ~~~~
!!! error TS2304: Cannot find name 'asdf'.
    var y: asdf;
           ~~~~
!!! error TS2304: Cannot find name 'asdf'.
    
    function foo(x: asdf, y: number): asdf { }
                    ~~~~
!!! error TS2304: Cannot find name 'asdf'.
                                      ~~~~
!!! error TS2304: Cannot find name 'asdf'.
    function foo2() {
        return asdf;
               ~~~~
!!! error TS2304: Cannot find name 'asdf'.
    }
    
    var z = <asdf>x; // should be an error
             ~~~~
!!! error TS2304: Cannot find name 'asdf'.
    
    class C<T> {
        foo: asdf;
             ~~~~
!!! error TS2304: Cannot find name 'asdf'.
        bar: C<asdf>;
               ~~~~
!!! error TS2304: Cannot find name 'asdf'.
    }
    
    class C2 implements asdf { }
                        ~~~~
!!! error TS2304: Cannot find name 'asdf'.
    interface I extends adsf { }
                        ~~~~
!!! error TS2304: Cannot find name 'adsf'.
    
    class C3 { constructor(x: any) { } }
    class C4 extends C3 {
        constructor() {
            super(asdf);
                  ~~~~
!!! error TS2304: Cannot find name 'asdf'.
        }
    }
    
    var x2 = this.asdf; // no error, this is any
    
    class C5 {
        constructor() {
            this.asdf = asdf;
                 ~~~~
!!! error TS2339: Property 'asdf' does not exist on type 'C5'.
                        ~~~~
!!! error TS2304: Cannot find name 'asdf'.
        }
    }