freedom_formatter icon indicating copy to clipboard operation
freedom_formatter copied to clipboard

Problem with nonempty list typespecs

Open s3cur3 opened this issue 7 months ago • 0 comments

Hi there! Thanks for the great library. We've used it happily at Felt for a couple years now. ☺️

I'm running into an issue with Elixir 1.17, where I have a typespec like this:

@spec join([String.t(), ...]) :: String.t()

With the trailing_comma: true and local_pipe_with_parens: true settings, it gets reformatted to:

@spec join([String.t(), ...()]) :: String.t()

(Note the new () following the ...)

This breaks compilation.

s3cur3 avatar Jul 10 '24 13:07 s3cur3