Skip to content

Should report argument is missing instead of no implicit argument was found ? #14680

Open
@He-Pin

Description

@He-Pin

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions