Move coroutines to kotlin.coroutines package: compiler
Generate continuation type as kotlin.coroutines.Continuaion. This code will fail at runtime since there is no stdlib backing this change yet. However, in order to generate compatible stdlib we need a compiler, which generates continuation type as kotlin.coroutines.Continuation. Thus, firstly we support the change in the compiler, make it bootstrap compiler and only then change stdlib and tests accordingly. #KT-23362
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// !API_VERSION: 1.3
|
||||
|
||||
suspend fun named() {}
|
||||
|
||||
suspend fun withStateMachine() {
|
||||
named()
|
||||
named()
|
||||
}
|
||||
|
||||
val l: suspend() -> Unit = {}
|
||||
@@ -0,0 +1,30 @@
|
||||
@kotlin.Metadata
|
||||
final class ReleaseCoroutinesKt$l$1 {
|
||||
inner class ReleaseCoroutinesKt$l$1
|
||||
method <init>(p0: kotlin.coroutines.Continuation): void
|
||||
public final @org.jetbrains.annotations.Nullable method create(@org.jetbrains.annotations.Nullable p0: java.lang.Object): java.lang.Object
|
||||
public final @org.jetbrains.annotations.Nullable method doResume(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.Nullable p1: java.lang.Throwable): java.lang.Object
|
||||
public final @org.jetbrains.annotations.Nullable method invoke(@org.jetbrains.annotations.Nullable p0: java.lang.Object): java.lang.Object
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
final class ReleaseCoroutinesKt$withStateMachine$1 {
|
||||
synthetic field data: java.lang.Object
|
||||
synthetic field exception: java.lang.Throwable
|
||||
inner class ReleaseCoroutinesKt$withStateMachine$1
|
||||
method <init>(p0: kotlin.coroutines.Continuation): void
|
||||
public final @org.jetbrains.annotations.Nullable method doResume(@org.jetbrains.annotations.Nullable p0: java.lang.Object, @org.jetbrains.annotations.Nullable p1: java.lang.Throwable): java.lang.Object
|
||||
synthetic final method getLabel(): int
|
||||
synthetic final method setLabel(p0: int): void
|
||||
}
|
||||
|
||||
@kotlin.Metadata
|
||||
public final class ReleaseCoroutinesKt {
|
||||
private final static @org.jetbrains.annotations.NotNull field l: kotlin.jvm.functions.Function1
|
||||
inner class ReleaseCoroutinesKt$l$1
|
||||
inner class ReleaseCoroutinesKt$withStateMachine$1
|
||||
static method <clinit>(): void
|
||||
public final static @org.jetbrains.annotations.NotNull method getL(): kotlin.jvm.functions.Function1
|
||||
public final static @org.jetbrains.annotations.Nullable method named(@org.jetbrains.annotations.Nullable p0: java.lang.Object): java.lang.Object
|
||||
public final static @org.jetbrains.annotations.Nullable method withStateMachine(@org.jetbrains.annotations.Nullable p0: java.lang.Object): java.lang.Object
|
||||
}
|
||||
Reference in New Issue
Block a user