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