[Constraint system] Centralize the handling of "unsolved" returns in matchTypes.

This commit is contained in:
Doug Gregor
2016-10-14 10:28:20 -07:00
parent 11b30a22a6
commit 2e800f4acc
2 changed files with 38 additions and 50 deletions

View File

@@ -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() {