[FE 1.0] 2/2 Drop AllowDifferentMembersInActual from compiler and testData

The annotation was dropped in the previous commit
This commit is contained in:
Nikita Bobko
2023-10-20 11:57:58 +02:00
committed by Space Team
parent 14029b0ebc
commit 0f82baf841
25 changed files with 119 additions and 136 deletions
@@ -88,8 +88,6 @@ private fun checkExpectActualScopeDiff(
}
}
private val allowDifferentMembersInActualFqn = FqName("kotlin.AllowDifferentMembersInActual")
@OptIn(ExperimentalContracts::class)
internal fun matchActualWithNonFinalExpect(
declaration: KtDeclaration,
@@ -114,10 +112,6 @@ internal fun matchActualWithNonFinalExpect(
if (!descriptor.isActual) return null
with(OptInUsageChecker) {
if (declaration.isDeclarationAnnotatedWith(allowDifferentMembersInActualFqn, context.trace.bindingContext)) return null
}
val actual = when (descriptor) {
is ClassDescriptor -> descriptor
is TypeAliasDescriptor -> descriptor.classDescriptor