File: primaryExpressionMods.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 (21 lines) | stat: -rw-r--r-- 837 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
tests/cases/compiler/primaryExpressionMods.ts(7,8): error TS2304: Cannot find name 'M'.
tests/cases/compiler/primaryExpressionMods.ts(11,8): error TS2503: Cannot find namespace 'm'.


==== tests/cases/compiler/primaryExpressionMods.ts (2 errors) ====
    module M
    {
        export interface P { x: number; y: number; }
        export var a = 1;
    }
    var p: M.P;             // Used as ModuleName
    var m: M = M;           // Used as TypeName and PrimaryExpression (error on TypeName)
           ~
!!! error TS2304: Cannot find name 'M'.
    var m2: typeof M = M;   // Used as PrimaryExpression in TypeQuery
    var x1 = M.a;           // Used as PrimaryExpression
    var x2 = m.a;           // Same as M.a
    var q: m.P;             // Error
           ~
!!! error TS2503: Cannot find namespace 'm'.