Skip to content

Commit 610f0de

Browse files
Fix test failures by correctly including AwaitExpression in left-hand side expression check
Co-authored-by: RyanCavanaugh <[email protected]>
1 parent 89ff160 commit 610f0de

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1+
awaitUsingDeclarations.4.ts(2,5): error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
12
awaitUsingDeclarations.4.ts(2,11): error TS2304: Cannot find name 'using'.
23
awaitUsingDeclarations.4.ts(2,18): error TS2304: Cannot find name 'a'.
3-
awaitUsingDeclarations.4.ts(2,21): error TS1005: ';' expected.
44

55

66
==== awaitUsingDeclarations.4.ts (3 errors) ====
77
{
88
await using [a] = null;
9+
~~~~~~~~~~~~~~~
10+
!!! error TS2364: The left-hand side of an assignment expression must be a variable or a property access.
911
~~~~~
1012
!!! error TS2304: Cannot find name 'using'.
1113
~
1214
!!! error TS2304: Cannot find name 'a'.
13-
~
14-
!!! error TS1005: ';' expected.
1515
}
1616

1717
export {};

tests/baselines/reference/awaitUsingDeclarations.4.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export {};
99

1010
//// [awaitUsingDeclarations.4.js]
1111
{
12-
await using[a];
13-
null;
12+
await using[a] = null;
1413
}
1514
export {};

0 commit comments

Comments
 (0)