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
x is 6 in Scala 3 where leading infix is rejected; 7 in Scala 2 which accepts it.
It would be nice to either forward-port the behavior (and specify it) or, since leading infix is now behind -Xsource-options and no one will use it, let the sleeping dog lie.
The text was updated successfully, but these errors were encountered:
The possible tweak is that the old suggestion to insert a semi is not leading-infix aware. (The semi would go between the lines.)
mlo.scala:10: error: value *= is not a member of Int
possible cause: maybe a semicolon is missing before `value *=`?
Expression does not convert to assignment because receiver is not assignable.
`a` *= 6
^
Questions are not bug reports
Even if the bug is a head-scratcher?
Reproduction steps
Scala version: 2.13.13 vs 3.4.1
Problem
As rehashed at scala/scala3#19763
x
is 6 in Scala 3 where leading infix is rejected; 7 in Scala 2 which accepts it.It would be nice to either forward-port the behavior (and specify it) or, since leading infix is now behind
-Xsource-options
and no one will use it, let the sleeping dog lie.The text was updated successfully, but these errors were encountered: