[NI] Fix replacing original in PropertyDescriptor

This commit is contained in:
Dmitriy Novozhilov
2019-05-29 17:32:02 +03:00
parent 88a9349f32
commit bcbbf4aba3
7 changed files with 41 additions and 1 deletions
@@ -845,7 +845,7 @@ private fun PropertyDescriptorImpl.hackSettersAccordingToCapturedOutTypes(): Pro
TypeApproximatorConfiguration.CapturedAndIntegerLiteralsTypesApproximation
) ?: return this
val newProperty = newCopyBuilder().build() as PropertyDescriptorImpl
val newProperty = newCopyBuilder().setOriginal(original).build() as PropertyDescriptorImpl
val newSetter = with(setter) {
PropertySetterDescriptorImpl(newProperty, annotations, modality, visibility, isDefault, isExternal, isInline, kind, original, source)