#### Fix dangling comment print in function parameters (#18623 by @fisker)

<!-- prettier-ignore -->
```jsx
// Input
fn = function(
  // comment  
) {}
arrow = (
  // comment  
) => {}

// Prettier stable
fn = function () // comment
{};
arrow = () =>
  // comment
  {};

// Prettier main
fn = function (
  // comment
) {};
arrow = (
  // comment
) => {};
```
