#### Fix printing comment for the last operand of union types (#18798 by @fisker)

<!-- prettier-ignore -->
```tsx
// Input
type Foo2 = (
  | "thing1" // Comment1
  | "thing2" // Comment2
) & Bar; // Final comment2
type Foo2 = (
  | "thing1" // Comment1
  | "thing2" // Comment2
) | Bar; // Final comment2

// Prettier stable
type Foo2 = (
  | "thing1" // Comment1
  | "thing2" // Comment2
) &
  Bar; // Final comment2
type Foo2 =
  | (
      | "thing1" // Comment1
      | "thing2"
    ) // Comment2
  | Bar; // Final comment2

// Prettier main
type Foo2 = (
  | "thing1" // Comment1
  | "thing2" // Comment2
) &
  Bar; // Final comment2
type Foo2 =
  | (
      | "thing1" // Comment1
      | "thing2" // Comment2
    )
  | Bar; // Final comment2
```
