FIR: don't add T <: Unit constraints that will only remove errors
^KT-55693 Fixed
This commit is contained in:
+1
-1
@@ -184,7 +184,7 @@ class FirCallCompleter(
|
||||
)
|
||||
}
|
||||
}
|
||||
!expectedType.isUnitOrFlexibleUnit || !mayBeCoercionToUnitApplied -> {
|
||||
!expectedType.isUnitOrFlexibleUnit || (!mayBeCoercionToUnitApplied && !expectedTypeMismatchIsReportedInChecker) -> {
|
||||
system.addSubtypeConstraint(initialType, expectedType, expectedTypeConstraintPosition)
|
||||
}
|
||||
system.notFixedTypeVariables.isEmpty() -> return
|
||||
|
||||
Reference in New Issue
Block a user