File: namespacesDeclaration2.errors.txt

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (27 lines) | stat: -rw-r--r-- 879 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
tests/cases/compiler/namespacesDeclaration2.ts(13,13): error TS2694: Namespace 'N' has no exported member 'S'.
tests/cases/compiler/namespacesDeclaration2.ts(14,12): error TS2694: Namespace 'M' has no exported member 'F'.
tests/cases/compiler/namespacesDeclaration2.ts(15,11): error TS2694: Namespace 'ns' has no exported member 'A'.


==== tests/cases/compiler/namespacesDeclaration2.ts (3 errors) ====
    
    namespace N {
        function S() {}
    }
    module M {
        function F() {}
    }
    
    declare namespace ns {
        let f: number;
    }
    
    var foge: N.S;
                ~
!!! error TS2694: Namespace 'N' has no exported member 'S'.
    var foo: M.F;
               ~
!!! error TS2694: Namespace 'M' has no exported member 'F'.
    let x: ns.A;
              ~
!!! error TS2694: Namespace 'ns' has no exported member 'A'.