K2: Fix false-negative RETURN_TYPE_MISMATCH
^KT-53987 Fixed ^KT-55932 Fixed
This commit is contained in:
committed by
Space Team
parent
d7399ed1cf
commit
9fa0f51a61
-4
@@ -379,10 +379,6 @@ private fun ConstraintSystemError.toDiagnostic(
|
||||
|
||||
when (position) {
|
||||
is ConeExpectedTypeConstraintPosition -> {
|
||||
if (position.expectedTypeMismatchIsReportedInChecker) {
|
||||
errorsToIgnore.add(this)
|
||||
return null
|
||||
}
|
||||
val inferredType =
|
||||
if (!lowerConeType.isNullableNothing)
|
||||
lowerConeType
|
||||
|
||||
Reference in New Issue
Block a user