Files
test-repo/tests/format/js/discard-binding/function-parameter.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
283 B
JavaScript
Raw Normal View History

{
// 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,) {} }
}