JVM IR: Fix local delegated properties with inline class types
This commit is contained in:
committed by
Alexander Udalov
parent
24a8e1cd9c
commit
e25a09f2f9
+4
-1
@@ -47,7 +47,10 @@ class MemoizedInlineClassReplacements {
|
|||||||
val getReplacementFunction: (IrFunction) -> IrReplacementFunction? =
|
val getReplacementFunction: (IrFunction) -> IrReplacementFunction? =
|
||||||
storageManager.createMemoizedFunctionWithNullableValues {
|
storageManager.createMemoizedFunctionWithNullableValues {
|
||||||
when {
|
when {
|
||||||
!it.hasMangledParameters || it.isSyntheticInlineClassMember || it.origin == IrDeclarationOrigin.LOCAL_FUNCTION_FOR_LAMBDA -> null
|
!it.hasMangledParameters ||
|
||||||
|
it.isSyntheticInlineClassMember ||
|
||||||
|
it.origin == IrDeclarationOrigin.LOCAL_FUNCTION_FOR_LAMBDA ||
|
||||||
|
it.origin == IrDeclarationOrigin.DELEGATED_PROPERTY_ACCESSOR -> null
|
||||||
it.hasMethodReplacement -> createMethodReplacement(it)
|
it.hasMethodReplacement -> createMethodReplacement(it)
|
||||||
it.hasStaticReplacement -> createStaticReplacement(it)
|
it.hasStaticReplacement -> createStaticReplacement(it)
|
||||||
else -> null
|
else -> null
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
// !LANGUAGE: +InlineClasses
|
// !LANGUAGE: +InlineClasses
|
||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
import kotlin.reflect.KMutableProperty0
|
import kotlin.reflect.KMutableProperty0
|
||||||
|
|||||||
Reference in New Issue
Block a user