6249b4c704
* rename esnext.ts as es2018.ts * remove ES2018 transforms for ES2018 target * change target from esnext to es2018 * rename tests
17 lines
293 B
TypeScript
17 lines
293 B
TypeScript
// @target: es2018
|
|
// @lib: es5
|
|
// @noEmit: true
|
|
async function f1() {
|
|
let y: number;
|
|
for await (const x of {}) {
|
|
}
|
|
for await (y of {}) {
|
|
}
|
|
}
|
|
async function* f2() {
|
|
let y: number;
|
|
for await (const x of {}) {
|
|
}
|
|
for await (y of {}) {
|
|
}
|
|
}
|