Properly check default kind on inheriting from old DefaultImpls scheme
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ fun CallableMemberDescriptor.isCompiledToJvmDefault(jvmDefault: JvmDefaultMode):
|
||||
return JvmProtoBufUtil.isNewPlaceForBodyGeneration(clazz.classProto)
|
||||
}
|
||||
|
||||
fun FunctionDescriptor.checkIsImplementationCompiledToJvmDefault(jvmDefaultMode: JvmDefaultMode): Boolean {
|
||||
fun CallableMemberDescriptor.checkIsImplementationCompiledToJvmDefault(jvmDefaultMode: JvmDefaultMode): Boolean {
|
||||
val actualImplementation =
|
||||
(if (kind.isReal) this else findImplementationFromInterface(this))
|
||||
?: error("Can't find actual implementation for $this")
|
||||
|
||||
Reference in New Issue
Block a user