Formatter does not indent case
and if
when the result is explicitly typed
#15421
Labels
case
and if
when the result is explicitly typed
#15421
Hi!
I saw in #13002 that some people advocate for the removal of alignment in the formatter, which I personally think would be horrible, as I really like alignment, but that's besides the point.
The following cases work as expected, with nicely aligned
if-else
andcase-when
blocks.If, however, the result, in this case
x
is explicitly typed, the formatter forces a 0 indentThe text was updated successfully, but these errors were encountered: