From d2fda2a07cbdf517546cd130c9e08634735c66c5 Mon Sep 17 00:00:00 2001 From: Georgy Bronnikov Date: Tue, 11 Aug 2020 18:41:07 +0300 Subject: [PATCH] Fir2Ir: bug fix --- .../jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt index fbded6204e4..17d9b9d0bba 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt @@ -523,8 +523,7 @@ class Fir2IrDeclarationStorage( ): IrSimpleFunction { val prefix = if (isSetter) "set" else "get" val signature = if (isLocal) null else signatureComposer.composeAccessorSignature(property, isSetter) - val containerSource = - (correspondingProperty.descriptor as? WrappedPropertyDescriptorWithContainerSource)?.containerSource + val containerSource = correspondingProperty.containerSource return declareIrAccessor( signature, containerSource,