Skip to content

default value ignored in @main #20485

Open
@iomedico-beyer

Description

@iomedico-beyer

Compiler version

3.4.2

Minimized code

@main def main(mode: String = "foo"): Unit = ???

Output

Illegal command line: more arguments expected

Expectation

  1. Please either support default values in @main
  2. or exit compilation with an error (to fail fast).

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