mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
12 lines
407 B
Plaintext
12 lines
407 B
Plaintext
awaitUsingDeclarations.10.ts(5,12): error TS1156: 'await using' declarations can only be declared inside a block.
|
|
|
|
|
|
==== awaitUsingDeclarations.10.ts (1 errors) ====
|
|
export {};
|
|
|
|
declare var x: any;
|
|
async function f() {
|
|
if (x) await using a = null;
|
|
~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS1156: 'await using' declarations can only be declared inside a block.
|
|
} |