mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
More progress towards getting same-type constraints working correctly.
Swift SVN r16023
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user