IR: copy annotations when making lateinit fields nullable

This commit is contained in:
pyos
2019-11-15 10:24:31 +01:00
committed by Alexander Udalov
parent 4f56b1a960
commit 1bc48c3df9
5 changed files with 31 additions and 0 deletions
@@ -48,6 +48,7 @@ open class LateinitLowering(val context: CommonBackendContext) : FileLoweringPas
}.apply {
parent = originalField.parent
correspondingPropertySymbol = originalField.correspondingPropertySymbol
annotations += originalField.annotations
}
}
}