Closed
Description
Compiler version
3.1.1
Minimized code
// In file echoargs.scala
@main def echo(args: String*) =
println(args.mkString(" "))
Output
First compile
$ scalac echoargs.scala
Then run the main method:
$ scala echo hello world
echo hello world hello world
Expectation
$ scala echo hello world
hello world
Edit: this was the output using the scala
command of 3.0.2