mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
361 B
TypeScript
17 lines
361 B
TypeScript
//// [tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.10.ts] ////
|
|
|
|
//// [awaitUsingDeclarations.10.ts]
|
|
export {};
|
|
|
|
declare var x: any;
|
|
async function f() {
|
|
if (x) await using a = null;
|
|
}
|
|
|
|
//// [awaitUsingDeclarations.10.js]
|
|
async function f() {
|
|
if (x)
|
|
await using a = null;
|
|
}
|
|
export {};
|