Do not report "delegation member hides override" when hidden member is final
This situation is erroneous because OVERRIDING_FINAL_MEMBER_BY_DELEGATION is already reported, no need to report another error
This commit is contained in:
@@ -63,7 +63,7 @@ class DelegationChecker : SimpleDeclarationChecker {
|
||||
DescriptorUtils.getAllOverriddenDescriptors(delegatedDescriptor).filter { it.kind.isReal }.toSet()
|
||||
) - DescriptorUtils.unwrapFakeOverride(delegatedToDescriptor).original
|
||||
|
||||
val nonAbstractReachable = reachableFromDelegated.filter { it.modality != Modality.ABSTRACT }
|
||||
val nonAbstractReachable = reachableFromDelegated.filter { it.modality == Modality.OPEN }
|
||||
|
||||
if (nonAbstractReachable.isNotEmpty()) {
|
||||
/*In case of MANY_IMPL_MEMBER_NOT_IMPLEMENTED error there could be several elements otherwise only one*/
|
||||
|
||||
Reference in New Issue
Block a user