Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avoid infix with
_*
. prepare Scala 3
https://github.com/playframework/playframework/blob/6e614d11cca8070e6c3aa4940f682f8cc1183e73/core/play/src/main/scala/play/api/libs/typedmap/TypedMap.scala#L94 ``` [error] 99 | withAttrs(attrs + (entries: _*)) [error] | ^ [error] | `_*` can be used only for last argument of method application. [error] | It is no longer allowed in operands of infix operations. ``` ``` Welcome to Scala 3.1.2 (11.0.15, Java OpenJDK 64-Bit Server VM). Type in expressions for evaluation. Or try :help. scala> object A { def +(xs: Int*): Unit = () } // defined object A scala> def a(xs: Int*) = A + (xs: _*) -- Error: ---------------------------------------------------------------------- 1 |def a(xs: Int*) = A + (xs: _*) | ^ | `_*` can be used only for last argument of method application. | It is no longer allowed in operands of infix operations. scala> def a(xs: Int*) = A.+(xs: _*) def a(xs: Int*): Unit ```
- Loading branch information