You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the syntax is missing ( at the beginning of the expression. So the .syntax is returning invalid Scala code. If you create a Patch.replaceTree with this term it will likely produce wrong code.
This issue does not happen in scalafix 0.10.4, so it looks like a regression.
I created a repo that reproduces this issue. It has 2 branches, the main branch with scalafix v0.10.4 where the test passes using sbt tests/test, and the bug branch with v0.11.0 where the test fails.
The text was updated successfully, but these errors were encountered:
I think I found a regression in scalafix v0.11.0
If you have this rule:
And this test file:
The
.syntax
in one of the inner ApplyInfix terms is wrong:Note that the syntax is missing
(
at the beginning of the expression. So the.syntax
is returning invalid Scala code. If you create aPatch.replaceTree
with this term it will likely produce wrong code.This issue does not happen in scalafix
0.10.4
, so it looks like a regression.I created a repo that reproduces this issue. It has 2 branches, the
main
branch with scalafix v0.10.4 where the test passes usingsbt tests/test
, and thebug
branch with v0.11.0 where the test fails.The text was updated successfully, but these errors were encountered: