Kapt+JVM_IR: support error types in suspend functions

JVM IR generates the continuation parameter with the name `$completion`
instead of `continuation`.
This commit is contained in:
Alexander Udalov
2023-01-06 21:39:29 +01:00
parent 4f2551497d
commit 690fe7ac9a
3 changed files with 15 additions and 2 deletions
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// CORRECT_ERROR_TYPES
// NO_VALIDATION
// WITH_STDLIB
@@ -0,0 +1,13 @@
@kotlin.Metadata()
public final class Foo {
public Foo() {
super();
}
@org.jetbrains.annotations.Nullable()
public final java.lang.Object a(@org.jetbrains.annotations.NotNull()
kotlin.coroutines.Continuation<ABC> $completion) {
return null;
}
}