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
prepare Scala 3