Why doesn't IntelliJ recognize my main method?
I have:
fun Array<String>.main() {
println("Hello World")
}
I can compile and run it using java main.Main -cp [kotlin-runtime], but there is no "run" button in IntelliJ and I cannot select this file as my main file.
Edit
It is now correctly recognized by IntelliJ since Kotlin 1.1.5.
+3
source to share
2 answers