[IR] Remove deprecated correspondingProperty from IrSimpleFunction

This commit is contained in:
Roman Artemev
2019-10-28 11:24:32 +03:00
committed by romanart
parent a343a57207
commit ec1c2eb42d
5 changed files with 3 additions and 19 deletions
@@ -172,7 +172,8 @@ open class LateinitLowering(val context: CommonBackendContext) : FileLoweringPas
val receiver = expression.extensionReceiver as IrPropertyReference
val property = receiver.getter?.owner?.resolveFakeOverride()?.correspondingProperty!!.also { assert(it.isLateinit) }
val property =
receiver.getter?.owner?.resolveFakeOverride()?.correspondingPropertySymbol!!.owner.also { assert(it.isLateinit) }
val nullableField =
buildOrGetNullableField(property.backingField ?: error("Lateinit property is supposed to have backing field"))