Fix test failures by correctly including AwaitExpression in left-hand side expression check

Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-07-15 18:55:24 +00:00
parent 89ff1601ce
commit 610f0de5ea
2 changed files with 4 additions and 5 deletions

View File

@@ -1,17 +1,17 @@
awaitUsingDeclarations.4.ts(2,5): error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
awaitUsingDeclarations.4.ts(2,11): error TS2304: Cannot find name 'using'.
awaitUsingDeclarations.4.ts(2,18): error TS2304: Cannot find name 'a'.
awaitUsingDeclarations.4.ts(2,21): error TS1005: ';' expected.
==== awaitUsingDeclarations.4.ts (3 errors) ====
{
await using [a] = null;
~~~~~~~~~~~~~~~
!!! error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
~~~~~
!!! error TS2304: Cannot find name 'using'.
~
!!! error TS2304: Cannot find name 'a'.
~
!!! error TS1005: ';' expected.
}
export {};

View File

@@ -9,7 +9,6 @@ export {};
//// [awaitUsingDeclarations.4.js]
{
await using[a];
null;
await using[a] = null;
}
export {};