Files
test-repo/tests/format/js/discard-binding/function-parameter.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

21 lines
283 B
JavaScript

{
// function parameter
function f(void) {}
}
{
// arrow function parameter
(x, void) => {}
}
{
// async arrow function parameter
async (void, x) => {}
}
{
// object method parameter
({ f(x, void, y) {} });
}
{
// class method parameter
class C { m(void,) {} }
}