Consider property external if all accessors are external #KT-13997 Fixed
This commit is contained in:
@@ -422,6 +422,11 @@ fun MemberDescriptor.isEffectivelyExternal(): Boolean {
|
||||
if (variableDescriptor.isEffectivelyExternal()) return true
|
||||
}
|
||||
|
||||
if (this is PropertyDescriptor) {
|
||||
if (getter?.isExternal == true &&
|
||||
(!isVar || setter?.isExternal == true)) return true
|
||||
}
|
||||
|
||||
val containingClass = getContainingClass(this)
|
||||
return containingClass != null && containingClass.isEffectivelyExternal()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user