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
To smooth migration to Scala 3.0, alphanumeric operators will only be deprecated from Scala 3.1 onwards, or if the -source future option is given in Dotty/Scala 3.
But it seems this planned change hasn't taken place as of 3.3.0-RC5:
Welcome to Scala3.3.0-RC5 (17.0.7, JavaOpenJDK64-BitServerVM).
Type in expressions for evaluation. Ortry:help.
scala>caseclassA(a:Int):|defplus(a:A) =A(this.a+a.a)
| println(A(1) plus A(2))
A(3)
// defined case class A
scala>:reset -source:future -deprecation
...
--DeprecationWarning:--------------------------------------------------------3|println(A(1) plus A(2))
|^^^^|Alphanumeric method plus is not declared infix; it should not be used asinfix operator.
|Instead, use method syntax .plus(...) or backticked identifier `plus`.
This was reported on Discord today.
The text was updated successfully, but these errors were encountered:
at https://docs.scala-lang.org/scala3/reference/changed-features/operators.html , I read:
But it seems this planned change hasn't taken place as of 3.3.0-RC5:
This was reported on Discord today.
The text was updated successfully, but these errors were encountered: