marcandre / freedom_formatter

A fork of Elixir's code formatter, with added freedom.
Apache License 2.0
24 stars 3 forks source link

Problem on Typespect with the arrow operator #10

Open lud-wj opened 2 months ago

lud-wj commented 2 months ago

The formatter is transforming this:

@spec reduce_ok(Enumerable.t(), term, (term, term -> result)) :: result

into this:

@spec reduce_ok(Enumerable.t(), term, [->(term, term, result)]) :: result

Which is invalid. I have the trailing_comma: true option.

s3cur3 commented 1 month ago

I believe this is specific to Elixir 1.17 (at least that's when I started noticing it).