public static void main in Kotlin
You can just put the main function outside of any class.
In anyFile.kt do:
package foo
fun main(args: Array<String>) {
}
Either main + tab
or psvm + tab
work if you have your cursor outside of a class.
Put it inside a companion object with the @JvmStatic
annotation:
class Test {
companion object {
@JvmStatic
fun main(args: Array<String>) {}
}
}