mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Constraint system] Centralize the handling of "unsolved" returns in matchTypes.
This commit is contained in:
@@ -731,7 +731,7 @@ static bool isStrictInoutSubtypeConstraint(Constraint *constraint) {
|
||||
if (!iot)
|
||||
return false;
|
||||
|
||||
return iot->getObjectType()->getAs<TypeVariableType>() == nullptr;
|
||||
return !iot->getObjectType()->isTypeVariableOrMember();
|
||||
}
|
||||
|
||||
bool ConstraintGraph::contractEdges() {
|
||||
|
||||
Reference in New Issue
Block a user