Files
tsgo/testdata/baselines/reference/submodule/conformance/awaitUsingDeclarationsInForIn.errors.txt

11 lines
419 B
Plaintext

awaitUsingDeclarationsInForIn.ts(2,10): error TS1494: The left-hand side of a 'for...in' statement cannot be an 'await using' declaration.
==== awaitUsingDeclarationsInForIn.ts (1 errors) ====
async function main() {
for (await using x in {}) {
~~~~~~~~~~~~~
!!! error TS1494: The left-hand side of a 'for...in' statement cannot be an 'await using' declaration.
}
}