forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrecursiveLetConst.types
More file actions
69 lines (55 loc) · 985 Bytes
/
recursiveLetConst.types
File metadata and controls
69 lines (55 loc) · 985 Bytes
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
=== tests/cases/compiler/recursiveLetConst.ts ===
'use strict'
>'use strict' : "use strict"
let x = x + 1;
>x : any
>x + 1 : any
>x : any
>1 : 1
let [x1] = x1 + 1;
>x1 : any
>x1 + 1 : any
>x1 : any
>1 : 1
const y = y + 2;
>y : any
>y + 2 : any
>y : any
>2 : 2
const [y1] = y1 + 1;
>y1 : any
>y1 + 1 : any
>y1 : any
>1 : 1
for (let v = v; ; ) { }
>v : any
>v : any
for (let [v] = v; ;) { }
>v : any
>v : any
for (let v in v) { }
>v : any
>v : any
for (let v of v) { }
>v : any
>v : any
for (let [v] of v) { }
>v : any
>v : any
let [x2 = x2] = []
>x2 : any
>x2 : any
>[] : [any?]
let z0 = () => z0;
>z0 : () => any
>() => z0 : () => any
>z0 : () => any
let z1 = function () { return z1; }
>z1 : () => any
>function () { return z1; } : () => any
>z1 : () => any
let z2 = { f() { return z2;}}
>z2 : { f(): any; }
>{ f() { return z2;}} : { f(): { f(): any; }; }
>f : () => { f(): any; }
>z2 : { f(): any; }