File: moduleCodeGenTest5.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 (59 lines) | stat: -rw-r--r-- 656 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
57
58
59
=== tests/cases/compiler/moduleCodeGenTest5.ts ===
export var x = 0;
>x : number
>0 : 0

var y = 0;
>y : number
>0 : 0

export function f1() {}
>f1 : () => void

function f2() {}
>f2 : () => void

export class C1 {
>C1 : C1

	public p1 = 0;
>p1 : number
>0 : 0

	public p2() {}
>p2 : () => void
}
class C2{
>C2 : C2

	public p1 = 0;
>p1 : number
>0 : 0

	public p2() {}	
>p2 : () => void
}

export enum E1 {A=0}
>E1 : E1
>A : E1.A
>0 : 0

var u = E1.A;
>u : E1
>E1.A : E1
>E1 : typeof E1
>A : E1

enum E2 {B=0}
>E2 : E2
>B : E2.B
>0 : 0

var v = E2.B;
>v : E2
>E2.B : E2
>E2 : typeof E2
>B : E2