commit | 182810e5e1557d690babf6ef7e172d5bb8490818 | [log] [tgz] |
---|---|---|
author | vladislav.grechko <vladislav.grechko@jetbrains.com> | Fri Apr 05 19:18:47 2024 +0200 |
committer | Space Team <noreply@jetbrains.team> | Mon Apr 22 17:54:00 2024 +0000 |
tree | 2e24f82e70e4bc201ffe1af090659bf074373f82 | |
parent | fa6ff6fc96ecef59707e365b407496243ae88264 [diff] |
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