Use accessor methods for reflective access to a local delegated property ^KT-67102: Fixed (cherry picked from commit f70542c29aee4fc696b73d15b33ce59ccdb34747)
diff --git a/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/ReflectiveAccess.kt b/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/ReflectiveAccess.kt index 99301c1..409f8e9 100644 --- a/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/ReflectiveAccess.kt +++ b/compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/ReflectiveAccess.kt
@@ -434,6 +434,7 @@ private fun shouldUseAccessor(accessor: IrSimpleFunction): Boolean { return (context.generatorExtensions as StubGeneratorExtensions).isAccessorWithExplicitImplementation(accessor) + || accessor.origin == IrDeclarationOrigin.DELEGATED_PROPERTY_ACCESSOR } // Returns a pair of the _type_ containing the field and the _instance_ on