More progress towards getting same-type constraints working correctly.

Swift SVN r16023
This commit is contained in:
Joe Pamer
2014-04-07 21:31:52 +00:00
parent b9fdfe3063
commit 18f3bf67b0
7 changed files with 40 additions and 19 deletions

View File

@@ -566,8 +566,8 @@ ConstraintSystem::matchTypes(Type type1, Type type2, TypeMatchKind kind,
// Add a new constraint between these types. We consider the current
// type-matching problem to the "solved" by this addition, because
// this new constraint will be solved at a later point.
// Obviously, this must not happen at the top level, or the algorithm
// would not terminate.
// Obviously, this must not happen at the top level, or the
// algorithm would not terminate.
addConstraint(getConstraintKind(kind), rep1, rep2,
getConstraintLocator(locator));
return SolutionKind::Solved;