Kapt: Fix an ArrayIndexOutOfBoundsException for suspend functions with generated return types
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// CORRECT_ERROR_TYPES
|
||||
// WITH_RUNTIME
|
||||
|
||||
@file:Suppress("UNRESOLVED_REFERENCE")
|
||||
class Foo {
|
||||
suspend fun a(): ABC = TODO()
|
||||
|
||||
suspend fun b(): Result<ABC> = TODO()
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import java.lang.System;
|
||||
|
||||
@kotlin.Metadata()
|
||||
public final class Foo {
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.Object a(@org.jetbrains.annotations.NotNull()
|
||||
kotlin.coroutines.Continuation<? super error.NonExistentClass> p0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@org.jetbrains.annotations.Nullable()
|
||||
public final java.lang.Object b(@org.jetbrains.annotations.NotNull()
|
||||
kotlin.coroutines.Continuation<? super kotlin.Result<? extends error.NonExistentClass>> p0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Foo() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user