FIR: set correspondingPropertySymbol of backing fields

This commit is contained in:
pyos
2019-11-21 13:13:35 +01:00
committed by Dmitriy Novozhilov
parent 0dcce9f584
commit 0f4f3f2429
2 changed files with 2 additions and 2 deletions
@@ -516,7 +516,8 @@ class Fir2IrVisitor(
}.setParentByParentStack().withParent {
declarationStorage.enterScope(descriptor)
val initializerExpression = firInitializerExpression?.toIrExpression()
this.initializer = initializerExpression?.let { IrExpressionBodyImpl(it) }
initializer = initializerExpression?.let { IrExpressionBodyImpl(it) }
correspondingPropertySymbol = this@createBackingField.symbol
declarationStorage.leaveScope(descriptor)
}
}
@@ -1,4 +1,3 @@
// IGNORE_BACKEND_FIR: JVM_IR
// FILE: 1.kt
// File names are important! This file should come before the other one
// in a lexicographic order.