JVM IR: Fix local delegated properties with inline class types

This commit is contained in:
Steven Schäfer
2019-10-02 11:13:54 +02:00
committed by Alexander Udalov
parent 24a8e1cd9c
commit e25a09f2f9
2 changed files with 4 additions and 2 deletions
@@ -47,7 +47,10 @@ class MemoizedInlineClassReplacements {
val getReplacementFunction: (IrFunction) -> IrReplacementFunction? =
storageManager.createMemoizedFunctionWithNullableValues {
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.hasStaticReplacement -> createStaticReplacement(it)
else -> null
@@ -1,5 +1,4 @@
// !LANGUAGE: +InlineClasses
// IGNORE_BACKEND: JVM_IR
// WITH_RUNTIME
import kotlin.reflect.KMutableProperty0