fix(KT-50270): inline properties accessor for child classes too.

This commit is contained in:
Artem Kobzar
2022-04-27 10:21:38 +00:00
committed by Space
parent 3de1235fda
commit ccc2aae841
14 changed files with 110 additions and 4 deletions
@@ -95,11 +95,11 @@ open class PropertyAccessorInlineLowering(
if (property.getter === callee) {
if (property.getter === analyzedCallee) {
return tryInlineSimpleGetter(expression, analyzedCallee, backingField) ?: expression
}
if (property.setter === callee) {
if (property.setter === analyzedCallee) {
return tryInlineSimpleSetter(expression, analyzedCallee, backingField) ?: expression
}