File: moduleImport.types

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (56 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (5)
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
=== tests/cases/compiler/moduleImport.ts ===
module A.B.C {
>A : typeof A
>B : typeof B
>C : typeof C

	import XYZ = X.Y.Z;
>XYZ : any
>X : typeof X
>Y : any
>Z : any

	export function ping(x: number) {
>ping : (x: number) => void
>x : number

		if (x>0) XYZ.pong (x-1);
>x>0 : boolean
>x : number
>0 : 0
>XYZ.pong (x-1) : any
>XYZ.pong : any
>XYZ : any
>pong : any
>x-1 : number
>x : number
>1 : 1
	}
}

module X {
>X : typeof X

	import ABC = A.B.C;
>ABC : typeof ABC
>A : typeof A
>B : typeof A.B
>C : typeof ABC

	export function pong(x: number) {
>pong : (x: number) => void
>x : number

		if (x > 0) ABC.ping(x-1);
>x > 0 : boolean
>x : number
>0 : 0
>ABC.ping(x-1) : void
>ABC.ping : (x: number) => void
>ABC : typeof ABC
>ping : (x: number) => void
>x-1 : number
>x : number
>1 : 1
	}
}