Files
test-repo/tests/format/js/discard-binding/using-variable-declarator.js
T
fisker Cheungandautofix-ci[bot] 95ef24d1f0 Support "Discard Bindings" proposal (#17708)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-04 15:41:42 +08:00

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 []);
}
}