File: exportNonInitializedVariablesES6.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 (100 lines) | stat: -rw-r--r-- 1,184 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
=== tests/cases/conformance/externalModules/exportNonInitializedVariablesES6.ts ===
var;
let;
>let : any

const;

export var a;
>a : any

export let b;
>b : any

export var c: string;
>c : string

export let d: number;
>d : number

class A {}
>A : A

export var e: A;
>e : A

export let f: A;
>f : A

namespace B {
>B : typeof B

    export let a = 1, b, c = 2;
>a : number
>1 : 1
>b : any
>c : number
>2 : 2

    export let x, y, z;
>x : any
>y : any
>z : any
}

module C {
>C : typeof C

    export var a = 1, b, c = 2;
>a : number
>1 : 1
>b : any
>c : number
>2 : 2

    export var x, y, z;
>x : any
>y : any
>z : any
}

// Shouldn't be filtered
export var a1 = 1;
>a1 : number
>1 : 1

export let b1 = 1;
>b1 : number
>1 : 1

export var c1: string = 'a';
>c1 : string
>'a' : "a"

export let d1: number = 1;
>d1 : number
>1 : 1

class D {}
>D : D

export var e1 = new D;
>e1 : D
>new D : D
>D : typeof D

export let f1 = new D;
>f1 : D
>new D : D
>D : typeof D

export var g1: D = new D;
>g1 : D
>new D : D
>D : typeof D

export let h1: D = new D;
>h1 : D
>new D : D
>D : typeof D