mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
543 B
TypeScript
15 lines
543 B
TypeScript
//// [tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts] ////
|
|
|
|
//// [awaitUsingDeclarationsInForAwaitOf.ts]
|
|
async function main() {
|
|
for await (await using d1 of [{ async [Symbol.asyncDispose]() {} }, { [Symbol.dispose]() {} }, null, undefined]) {
|
|
}
|
|
}
|
|
|
|
//// [awaitUsingDeclarationsInForAwaitOf.js]
|
|
"use strict";
|
|
async function main() {
|
|
for await (await using d1 of [{ async [Symbol.asyncDispose]() { } }, { [Symbol.dispose]() { } }, null, undefined]) {
|
|
}
|
|
}
|