Open
Description
Compiler version
3.1.1
Minimized code
@main def main(name:String, age:Option[Int] = Some(1)): Unit = println(name)
Output
run directly with no arguments
C:\Users\hepin\IdeaProjects\scala3Learn\src\Test.scala:2
no implicit argument of type scala.util.CommandLineParser.FromString[Option[Int]] was found for parameter fs of method parseArgument in object CommandLineParser
@main def main(name:String, age:Option[Int] = Some(1)): Unit = println(name)
Expectation
report Aguments for 'name' and 'age' is missing
。