-rewrite -no-indent
breaks code with Optional Braces for Method Arguments
#17399
Labels
-rewrite -no-indent
breaks code with Optional Braces for Method Arguments
#17399
Compiler version
3.3.0-RC5
Minimized code
Output
when we call
scala-cli compile BadRewrite.scala
our file is rewriten to:and it clearly misses single bracket. It happens only when you use "optional braces for method arguments" as last thing in block.
If we add anything after call on the same level (here object Test) it will produce proper result:
translates to
Weird Behavior of End Marker
translates to:
but with extra
\n
:translates to:
The text was updated successfully, but these errors were encountered: