Support parameterless and suspend main functions in multifile classes

#KT-26574 Fixed
This commit is contained in:
Denis Zharkov
2018-09-07 15:19:08 +03:00
parent b53194ef1a
commit fc3c4ad883
9 changed files with 102 additions and 9 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
@file:JvmMultifileClass
@file:JvmName("Foo")
package Hello
suspend fun main(args: Array<String>) {}
@@ -0,0 +1,18 @@
@kotlin.Metadata
public final class Hello/Foo {
public final static @org.jetbrains.annotations.Nullable method main(@org.jetbrains.annotations.NotNull p0: java.lang.String[], @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object
public synthetic static method main(p0: java.lang.String[]): void
}
@kotlin.Metadata
synthetic final class Hello/Foo__MultifileSuspendKt$$$main {
private final field args: java.lang.String[]
synthetic method <init>(p0: java.lang.String[]): void
public synthetic final method invoke(p0: java.lang.Object): java.lang.Object
}
@kotlin.Metadata
synthetic final class Hello/Foo__MultifileSuspendKt {
public final static @org.jetbrains.annotations.Nullable method main(@org.jetbrains.annotations.NotNull p0: java.lang.String[], @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.Continuation): java.lang.Object
public synthetic static method main(p0: java.lang.String[]): void
}