Minor refactoring -- use util function
This commit is contained in:
committed by
teamcityserver
parent
cea6081d36
commit
e9a2997f7e
+1
-3
@@ -186,9 +186,7 @@ class ExpectedActualDeclarationChecker(
|
|||||||
|
|
||||||
// Here we have exactly one compatible actual and/or some weakly incompatible. In either case, we don't report anything on expect
|
// Here we have exactly one compatible actual and/or some weakly incompatible. In either case, we don't report anything on expect
|
||||||
val actualMembers = compatibility.asSequence()
|
val actualMembers = compatibility.asSequence()
|
||||||
.filter { (compatibility, _) ->
|
.filter { it.key.isCompatibleOrWeakCompatible() }.flatMap { it.value.asSequence() }
|
||||||
compatibility is Compatible || (compatibility is Incompatible && compatibility.kind != IncompatibilityKind.STRONG)
|
|
||||||
}.flatMap { it.value.asSequence() }
|
|
||||||
|
|
||||||
expectActualTracker.reportExpectActual(expected = descriptor, actualMembers = actualMembers)
|
expectActualTracker.reportExpectActual(expected = descriptor, actualMembers = actualMembers)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user