File: extension.errors.txt

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (49 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download
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
extension.ts(10,18): error TS2300: Duplicate identifier 'C'.
extension.ts(16,5): error TS1128: Declaration or statement expected.
extension.ts(16,12): error TS1434: Unexpected keyword or identifier.
extension.ts(16,12): error TS2304: Cannot find name 'extension'.
extension.ts(16,28): error TS2300: Duplicate identifier 'C'.
extension.ts(22,3): error TS2339: Property 'pe' does not exist on type 'C'.


==== extension.ts (6 errors) ====
    interface I {
        x;
    }
    
    interface I {
        y;
    }
    
    declare module M {
        export class C {
                     ~
!!! error TS2300: Duplicate identifier 'C'.
            public p:number;
        }
    }
    
    declare module M {
        export extension class C {
        ~~~~~~
!!! error TS1128: Declaration or statement expected.
               ~~~~~~~~~
!!! error TS1434: Unexpected keyword or identifier.
               ~~~~~~~~~
!!! error TS2304: Cannot find name 'extension'.
                               ~
!!! error TS2300: Duplicate identifier 'C'.
            public pe:string;
        }
    }
    
    var c=new M.C();
    c.pe;
      ~~
!!! error TS2339: Property 'pe' does not exist on type 'C'.
    c.p;
    var i:I;
    i.x;
    i.y;