mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
35 lines
600 B
JavaScript
35 lines
600 B
JavaScript
{
|
|
// using 1 declarator
|
|
using void = f();
|
|
}
|
|
{
|
|
// using 2 declarators
|
|
using void = f(), void = g();
|
|
}
|
|
{
|
|
// using void declarator and normal declarator
|
|
using void = f(), x = g();
|
|
}
|
|
{
|
|
// using declarator in for-of
|
|
for(using void of []);
|
|
}
|
|
async () => {
|
|
{
|
|
// await using 1 declarator
|
|
await using void = f();
|
|
}
|
|
{
|
|
// await using 2 declarators
|
|
await using void = f(), void = g();
|
|
}
|
|
{
|
|
// await using void declarator and normal declarator
|
|
await using void = f(), x = g();
|
|
}
|
|
{
|
|
// await using declarator in for-of
|
|
for(await using void of []);
|
|
}
|
|
}
|