@@ -7,49 +7,70 @@ declare const iterable: Iterable<number>;
7
7
>iterable : Symbol(iterable, Decl(types.forAwait.esnext.1.ts, 1, 13))
8
8
>Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --))
9
9
10
+ declare const iterableOfPromise: Iterable<Promise<number>>;
11
+ >iterableOfPromise : Symbol(iterableOfPromise, Decl(types.forAwait.esnext.1.ts, 2, 13))
12
+ >Iterable : Symbol(Iterable, Decl(lib.es2015.iterable.d.ts, --, --))
13
+ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
14
+
10
15
async function f1() {
11
- >f1 : Symbol(f1, Decl(types.forAwait.esnext.1.ts, 1, 41 ))
16
+ >f1 : Symbol(f1, Decl(types.forAwait.esnext.1.ts, 2, 59 ))
12
17
13
18
let y: number;
14
- >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 3 , 7))
19
+ >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 4 , 7))
15
20
16
21
for await (const x of asyncIterable) {
17
- >x : Symbol(x, Decl(types.forAwait.esnext.1.ts, 4 , 20))
22
+ >x : Symbol(x, Decl(types.forAwait.esnext.1.ts, 5 , 20))
18
23
>asyncIterable : Symbol(asyncIterable, Decl(types.forAwait.esnext.1.ts, 0, 13))
19
24
}
20
25
for await (const x of iterable) {
21
- >x : Symbol(x, Decl(types.forAwait.esnext.1.ts, 6 , 20))
26
+ >x : Symbol(x, Decl(types.forAwait.esnext.1.ts, 7 , 20))
22
27
>iterable : Symbol(iterable, Decl(types.forAwait.esnext.1.ts, 1, 13))
28
+ }
29
+ for await (const x of iterableOfPromise) {
30
+ >x : Symbol(x, Decl(types.forAwait.esnext.1.ts, 9, 20))
31
+ >iterableOfPromise : Symbol(iterableOfPromise, Decl(types.forAwait.esnext.1.ts, 2, 13))
23
32
}
24
33
for await (y of asyncIterable) {
25
- >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 3 , 7))
34
+ >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 4 , 7))
26
35
>asyncIterable : Symbol(asyncIterable, Decl(types.forAwait.esnext.1.ts, 0, 13))
27
36
}
28
37
for await (y of iterable) {
29
- >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 3 , 7))
38
+ >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 4 , 7))
30
39
>iterable : Symbol(iterable, Decl(types.forAwait.esnext.1.ts, 1, 13))
31
40
}
41
+ for await (y of iterableOfPromise) {
42
+ >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 4, 7))
43
+ >iterableOfPromise : Symbol(iterableOfPromise, Decl(types.forAwait.esnext.1.ts, 2, 13))
44
+ }
32
45
}
33
46
async function * f2() {
34
- >f2 : Symbol(f2, Decl(types.forAwait.esnext.1.ts, 12 , 1))
47
+ >f2 : Symbol(f2, Decl(types.forAwait.esnext.1.ts, 17 , 1))
35
48
36
49
let y: number;
37
- >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 14 , 7))
50
+ >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 19 , 7))
38
51
39
52
for await (const x of asyncIterable) {
40
- >x : Symbol(x, Decl(types.forAwait.esnext.1.ts, 15 , 20))
53
+ >x : Symbol(x, Decl(types.forAwait.esnext.1.ts, 20 , 20))
41
54
>asyncIterable : Symbol(asyncIterable, Decl(types.forAwait.esnext.1.ts, 0, 13))
42
55
}
43
56
for await (const x of iterable) {
44
- >x : Symbol(x, Decl(types.forAwait.esnext.1.ts, 17 , 20))
57
+ >x : Symbol(x, Decl(types.forAwait.esnext.1.ts, 22 , 20))
45
58
>iterable : Symbol(iterable, Decl(types.forAwait.esnext.1.ts, 1, 13))
59
+ }
60
+ for await (const x of iterableOfPromise) {
61
+ >x : Symbol(x, Decl(types.forAwait.esnext.1.ts, 24, 20))
62
+ >iterableOfPromise : Symbol(iterableOfPromise, Decl(types.forAwait.esnext.1.ts, 2, 13))
46
63
}
47
64
for await (y of asyncIterable) {
48
- >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 14 , 7))
65
+ >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 19 , 7))
49
66
>asyncIterable : Symbol(asyncIterable, Decl(types.forAwait.esnext.1.ts, 0, 13))
50
67
}
51
68
for await (y of iterable) {
52
- >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 14 , 7))
69
+ >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 19 , 7))
53
70
>iterable : Symbol(iterable, Decl(types.forAwait.esnext.1.ts, 1, 13))
54
71
}
72
+ for await (y of iterableOfPromise) {
73
+ >y : Symbol(y, Decl(types.forAwait.esnext.1.ts, 19, 7))
74
+ >iterableOfPromise : Symbol(iterableOfPromise, Decl(types.forAwait.esnext.1.ts, 2, 13))
75
+ }
55
76
}
0 commit comments