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.