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