[FIR] NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS: report both mismatches and incompatibilites
This commit is a preparation step for KT-59887. For now, expectActualInlineClass.fir.kt became slightly more verbose. Once is KT-59887 fixed, the verbosity will go away. Because we won't report incompatibilites mismatches for ACTUAL_MISSING declarations Review: https://jetbrains.team/p/kt/reviews/13094/timeline
This commit is contained in:
+2
-1
@@ -179,7 +179,8 @@ object FirExpectActualDeclarationChecker : FirBasicDeclarationChecker() {
|
||||
|
||||
if (nonTrivialIncompatibleMembers.isNotEmpty()) {
|
||||
reporter.reportOn(source, FirErrors.NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS, symbol, nonTrivialIncompatibleMembers, context)
|
||||
} else if (checkingCompatibility.mismatchedMembers.isNotEmpty()) {
|
||||
}
|
||||
if (checkingCompatibility.mismatchedMembers.isNotEmpty()) {
|
||||
reporter.reportOn(source, FirErrors.NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS, symbol, checkingCompatibility.mismatchedMembers, context)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user