mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-12 23:36:28 -05:00
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:
@@ -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 {};
|
||||
@@ -9,7 +9,6 @@ export {};
|
||||
|
||||
//// [awaitUsingDeclarations.4.js]
|
||||
{
|
||||
await using[a];
|
||||
null;
|
||||
await using[a] = null;
|
||||
}
|
||||
export {};
|
||||
|
||||
Reference in New Issue
Block a user