Files
tsgo/testdata/baselines/reference/submodule/conformance/awaitUsingDeclarations.10.errors.txt

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.
}