[KLIB] Fix SOE in K/N

- fixes KT-41324
This commit is contained in:
Roman Artemev
2020-08-28 16:12:38 +03:00
parent 23f87d413a
commit 39808789c3
@@ -198,13 +198,11 @@ class DeclarationStubGenerator(
}
if (createPropertyIfNeeded && descriptor is PropertyGetterDescriptor) {
val propertySymbol = symbolTable.referenceProperty(descriptor.correspondingProperty)
val property = irProviders_.getDeclaration(propertySymbol) as IrProperty
val property = generatePropertyStub(descriptor.correspondingProperty)
return property.getter!!
}
if (createPropertyIfNeeded && descriptor is PropertySetterDescriptor) {
val propertySymbol = symbolTable.referenceProperty(descriptor.correspondingProperty)
val property = irProviders_.getDeclaration(propertySymbol) as IrProperty
val property = generatePropertyStub(descriptor.correspondingProperty)
return property.setter!!
}