File: types.forAwait.es2018.3.symbols

package info (click to toggle)
node-typescript 5.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 497,488 kB
  • sloc: javascript: 2,107,274; makefile: 6; sh: 1
file content (30 lines) | stat: -rw-r--r-- 822 bytes parent folder | download
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
//// [tests/cases/conformance/types/forAwait/types.forAwait.es2018.3.ts] ////

=== types.forAwait.es2018.3.ts ===
async function f1() {
>f1 : Symbol(f1, Decl(types.forAwait.es2018.3.ts, 0, 0))

    let y: number;
>y : Symbol(y, Decl(types.forAwait.es2018.3.ts, 1, 7))

    for await (const x of {}) {
>x : Symbol(x, Decl(types.forAwait.es2018.3.ts, 2, 20))
    }
    for await (y of {}) {
>y : Symbol(y, Decl(types.forAwait.es2018.3.ts, 1, 7))
    }
}
async function* f2() {
>f2 : Symbol(f2, Decl(types.forAwait.es2018.3.ts, 6, 1))

    let y: number;
>y : Symbol(y, Decl(types.forAwait.es2018.3.ts, 8, 7))

    for await (const x of {}) {
>x : Symbol(x, Decl(types.forAwait.es2018.3.ts, 9, 20))
    }
    for await (y of {}) {
>y : Symbol(y, Decl(types.forAwait.es2018.3.ts, 8, 7))
    }
}