tests/cases/conformance/parser/ecmascriptnext/forAwait/forAwaitInWithDeclIsError.ts(1,20): error TS1005: 'of' expected.
tests/cases/conformance/parser/ecmascriptnext/forAwait/forAwaitInWithDeclIsError.ts(1,23): error TS2304: Cannot find name 'y'.
tests/cases/conformance/parser/ecmascriptnext/forAwait/forAwaitInWithExprIsError.ts(1,12): error TS2304: Cannot find name 'x'.
tests/cases/conformance/parser/ecmascriptnext/forAwait/forAwaitInWithExprIsError.ts(1,14): error TS1005: 'of' expected.
tests/cases/conformance/parser/ecmascriptnext/forAwait/forAwaitInWithExprIsError.ts(1,17): error TS2304: Cannot find name 'y'.
tests/cases/conformance/parser/ecmascriptnext/forAwait/inFunctionDeclWithDeclIsError.ts(3,9): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
tests/cases/conformance/parser/ecmascriptnext/forAwait/inFunctionDeclWithExprIsError.ts(3,9): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
tests/cases/conformance/parser/ecmascriptnext/forAwait/inGeneratorWithDeclIsError.ts(3,9): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
tests/cases/conformance/parser/ecmascriptnext/forAwait/inGeneratorWithExprIsError.ts(3,9): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
tests/cases/conformance/parser/ecmascriptnext/forAwait/topLevelWithDeclIsError.ts(1,5): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
tests/cases/conformance/parser/ecmascriptnext/forAwait/topLevelWithDeclIsError.ts(1,23): error TS2304: Cannot find name 'y'.
tests/cases/conformance/parser/ecmascriptnext/forAwait/topLevelWithExprIsError.ts(1,5): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
tests/cases/conformance/parser/ecmascriptnext/forAwait/topLevelWithExprIsError.ts(1,12): error TS2304: Cannot find name 'x'.
tests/cases/conformance/parser/ecmascriptnext/forAwait/topLevelWithExprIsError.ts(1,17): error TS2304: Cannot find name 'y'.


==== tests/cases/conformance/parser/ecmascriptnext/forAwait/topLevelWithDeclIsError.ts (2 errors) ====
    for await (const x of y) {
        ~~~~~
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
                          ~
!!! error TS2304: Cannot find name 'y'.
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/topLevelWithExprIsError.ts (3 errors) ====
    for await (x of y) {
        ~~~~~
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
               ~
!!! error TS2304: Cannot find name 'x'.
                    ~
!!! error TS2304: Cannot find name 'y'.
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/forAwaitInWithDeclIsError.ts (2 errors) ====
    for await (const x in y) {
                       ~~
!!! error TS1005: 'of' expected.
                          ~
!!! error TS2304: Cannot find name 'y'.
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/forAwaitInWithExprIsError.ts (3 errors) ====
    for await (x in y) {
               ~
!!! error TS2304: Cannot find name 'x'.
                 ~~
!!! error TS1005: 'of' expected.
                    ~
!!! error TS2304: Cannot find name 'y'.
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/inFunctionDeclWithDeclIsError.ts (1 errors) ====
    function f5() {
        let y: any;
        for await (const x of y) {
            ~~~~~
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
        }
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/inFunctionDeclWithExprIsError.ts (1 errors) ====
    function f6() {
        let x: any, y: any;
        for await (x of y) {
            ~~~~~
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
        }
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/inAsyncFunctionWithDeclIsOk.ts (0 errors) ====
    async function f7() {
        let y: any;
        for await (const x of y) {
        }
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/inAsyncFunctionWithExprIsOk.ts (0 errors) ====
    async function f8() {
        let x: any, y: any;
        for await (x of y) {
        }
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/inAsyncGeneratorWithDeclIsOk.ts (0 errors) ====
    async function* f9() {
        let y: any;
        for await (const x of y) {
        }
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/inAsyncGeneratorWithExpressionIsOk.ts (0 errors) ====
    async function* f10() {
        let x: any, y: any;
        for await (x of y) {
        }
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/inGeneratorWithDeclIsError.ts (1 errors) ====
    function* f11() {
        let y: any;
        for await (const x of y) {
            ~~~~~
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
        }
    }
==== tests/cases/conformance/parser/ecmascriptnext/forAwait/inGeneratorWithExprIsError.ts (1 errors) ====
    function* f12() {
        let x: any, y: any;
        for await (x of y) {
            ~~~~~
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
        }
    }