mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
JVM IR: Support parameterless main methods
This commit: - introduces tests explicating what is and isn't considered a proper main method on the JVM backends. - implements support for parameterless main methods on the JVM IR backend - See KT-34338 for more tests.
This commit is contained in:
committed by
Alexander Udalov
parent
4b77db8979
commit
28b6913a25
@@ -0,0 +1,11 @@
|
||||
fun main() {
|
||||
|
||||
}
|
||||
|
||||
fun main(args: Array<in String>) {
|
||||
|
||||
}
|
||||
|
||||
// method: ArrayWithContravariantStringIsNotMainMethodKt::main
|
||||
// jvm signature: ([Ljava/lang/String;)V
|
||||
// generic signature: null
|
||||
Reference in New Issue
Block a user