Skip to content

Commit 78487d4

Browse files
committed
add test for await using in TypeScript
1 parent 1e3387f commit 78487d4

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
consts
2-
| tst.tsx:2:3:2:26 | const { ... } = o; |
3-
| tst.tsx:9:5:9:26 | const b ... efined; |
4-
usings
5-
| tst.tsx:7:5:7:28 | using f ... as any; |
61
#select
72
| tst.tsx:1:10:1:10 | f |
83
| tst.tsx:1:12:1:12 | o |
94
| tst.tsx:2:14:2:14 | v |
105
| tst.tsx:6:10:6:10 | v |
116
| tst.tsx:7:11:7:13 | foo |
127
| tst.tsx:9:11:9:13 | bar |
8+
| tst.tsx:12:16:12:16 | b |
9+
| tst.tsx:13:17:13:19 | foo |
10+
consts
11+
| tst.tsx:2:3:2:26 | const { ... } = o; |
12+
| tst.tsx:9:5:9:26 | const b ... efined; |
13+
usings
14+
| tst.tsx:7:5:7:28 | using f ... as any; |
15+
| tst.tsx:13:5:13:34 | await u ... as any; |

javascript/ql/test/library-tests/TypeScript/BindingPattern/tst.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ function v() {
77
using foo = null as any;
88

99
const bar = undefined;
10+
}
11+
12+
async function b() {
13+
await using foo = null as any;
1014
}

0 commit comments

Comments
 (0)