eed3si9n / scalaxb

scalaxb is an XML data binding tool for Scala.
http://scalaxb.org/
MIT License
332 stars 154 forks source link

avoid infix with varargs #611

Closed xuwei-k closed 10 months ago

xuwei-k commented 10 months ago

prepare Scala 3

Welcome to Scala 3.3.1 (1.8.0_382, Java OpenJDK 64-Bit Server VM).
Type in expressions for evaluation. Or try :help.

scala> def info(message: String, args: Any*): Unit =
     |   message format (args.toSeq: _*)
-- Error: ----------------------------------------------------------------------
2 |  message format (args.toSeq: _*)
  |                              ^
  |            `_*` can be used only for last argument of method application.
  |            It is no longer allowed in operands of infix operations.
-- [E040] Syntax Error: --------------------------------------------------------
2 |  message format (args.toSeq: _*)
  |                                 ^
  |                                 unindent expected, but eof found

scala> def info(message: String, args: Any*): Unit =
     |   message.format(args.toSeq: _*)
     | 
def info(message: String, args: Any*): Unit