Why IntelliJ doesn't recognize my main method?

Viewed 2734

I have:

fun Array<String>.main() {
  println("Hello World")
}

I can compile and run it with 'java main.Main -cp [kotlin-runtime]' but in IntelliJ there isn't a 'run' button, and I cannot select this file as a main file.

Edit

It's now correctly recognized by IntelliJ since Kotlin 1.1.5.

2 Answers
Related