scalameta / scalafmt

Code formatter for Scala
http://scalameta.org/scalafmt
Apache License 2.0
1.44k stars 277 forks source link

Router: handle Lit.Unit and empty ArgClause #4556

Closed kitbellew closed 1 week ago

kitbellew commented 1 week ago

Depending on the dialect, a + () might parse the argument as an empty ArgClause or a single-arg Lit.Unit, which might lead to differences in formatting rules considered.