Add language feature for extended main convention
- suspend - parameterless #KT-17679 Fixed #KT-26574 Fixed
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun main() {}
|
||||
@@ -0,0 +1,5 @@
|
||||
@kotlin.Metadata
|
||||
public final class ParameterlessMainKt {
|
||||
public final static method main(): void
|
||||
public synthetic static method main(p0: java.lang.String[]): void
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// !LANGUAGE: -ExtendedMainConvention
|
||||
// WITH_RUNTIME
|
||||
|
||||
fun main() {}
|
||||
@@ -0,0 +1,4 @@
|
||||
@kotlin.Metadata
|
||||
public final class ParameterlessMain_beforeKt {
|
||||
public final static method main(): void
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
suspend fun main(args: Array<String>) {}
|
||||
@@ -0,0 +1,12 @@
|
||||
@kotlin.Metadata
|
||||
synthetic final class SuspendMainKt$$$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
|
||||
public final class SuspendMainKt {
|
||||
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
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
// !LANGUAGE: -ExtendedMainConvention -ReleaseCoroutines
|
||||
// WITH_RUNTIME
|
||||
|
||||
suspend fun main(args: Array<String>) {}
|
||||
@@ -0,0 +1,4 @@
|
||||
@kotlin.Metadata
|
||||
public final class SuspendMain_beforeKt {
|
||||
public final static @org.jetbrains.annotations.Nullable method main(@org.jetbrains.annotations.NotNull p0: java.lang.String[], @org.jetbrains.annotations.NotNull p1: kotlin.coroutines.experimental.Continuation): java.lang.Object
|
||||
}
|
||||
Reference in New Issue
Block a user