E3003

E3003#

init and main function must have no arguments and no return value.

Erroneous example#

fn main() -> Unit { // Error: Main function must have no arguments and no return value.
  println("Hello, world!")
}

Suggestion#

Remove the argument list and return type annotation, as:

fn main {
  println("Hello, world!")
}