Fix signature mapping for default suspend function from interface
Use jvm suspend function view in function codegen. Also use SUSPEND_FUNCTION_TO_JVM_VIEW slice if the value exists for the given key #KT-15552 Fixed
This commit is contained in:
+4
@@ -212,6 +212,10 @@ public class SignaturesPropagationData {
|
||||
}
|
||||
|
||||
for (FunctionDescriptor candidate : superFunctionCandidates) {
|
||||
// Skip suspend super functions, because we doesn't process them correctly by now
|
||||
// Moreover, we fail with exception sometimes
|
||||
// TODO: remove this continue when KT-15747 is fixed
|
||||
if (candidate.isSuspend()) continue;
|
||||
Method candidateSignature = SIGNATURE_MAPPER.mapToJvmMethodSignature(candidate);
|
||||
if (KotlinToJvmSignatureMapperKt.erasedSignaturesEqualIgnoringReturnTypes(autoSignature, candidateSignature)) {
|
||||
superFunctions.add(candidate);
|
||||
|
||||
Reference in New Issue
Block a user