TypeScript/tests/cases/conformance/types/forAwait/types.forAwait.es2018.3.ts
Kagami Sascha Rosylight 6249b4c704 Remove ES2018 transforms for ES2018 target (#26315)
* rename esnext.ts as es2018.ts

* remove ES2018 transforms for ES2018 target

* change target from esnext to es2018

* rename tests
2019-02-06 15:35:52 -08:00

18 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 {}) {
}
}