We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version = "3.8.3" maxColumn = 100 rewrite.rules = [ RedundantParens ] runner.dialect = scala213
Given code like this:
object a { val b: Long = 1 } (-a.b).toString
Scalafmt formats code like this:
-a.b.toString
Parens are removed and the code doesn't compile with
value unary_- is not a member of String
I would like the formatted output to look like this:
(-a.b).toString // untouched
Revert to v3.8.2 or disable formatting.
v3.8.2
This also happens in Scala3.
The text was updated successfully, but these errors were encountered:
duplicate of #4116.
Sorry, something went wrong.
!
No branches or pull requests
Steps
Given code like this:
Problem
Scalafmt formats code like this:
-a.b.toString
Parens are removed and the code doesn't compile with
Expectation
I would like the formatted output to look like this:
Workaround
Revert to
v3.8.2
or disable formatting.Note
This also happens in Scala3.
The text was updated successfully, but these errors were encountered: