[MPP] Forbid actual member in expect class

Such member descriptor will be actual and expect at the same time,
so we should run both checks.

^KT-40903 Fixed
This commit is contained in:
Roman Efremov
2023-04-03 18:17:21 +02:00
committed by Space Team
parent c3734aa9ce
commit bcf4528763
7 changed files with 50 additions and 5 deletions
@@ -63,7 +63,8 @@ class ExpectedActualDeclarationChecker(
declaration, descriptor, context.trace,
checkActualModifier, context.expectActualTracker
)
} else if (descriptor.isActualOrSomeContainerIsActual()) {
}
if (descriptor.isActualOrSomeContainerIsActual()) {
val allDependsOnModules = moduleStructureOracle.findAllDependsOnPaths(descriptor.module).flatMap { it.nodes }.toHashSet()
checkActualDeclarationHasExpected(
declaration,