* rename esnext.ts as es2018.ts * remove ES2018 transforms for ES2018 target * change target from esnext to es2018 * rename tests
21 lines
459 B
TypeScript
21 lines
459 B
TypeScript
// @target: es2018
|
|
// @lib: esnext
|
|
// @noEmit: true
|
|
declare const asyncIterable: AsyncIterable<number>;
|
|
declare const iterable: Iterable<number>;
|
|
async function f() {
|
|
let y: number;
|
|
let z: string;
|
|
for await (const x of {}) {
|
|
}
|
|
for await (y of {}) {
|
|
}
|
|
for await (z of asyncIterable) {
|
|
}
|
|
for await (z of iterable) {
|
|
}
|
|
for (const x of asyncIterable) {
|
|
}
|
|
for (y of asyncIterable) {
|
|
}
|
|
}
|