@@ -4156,6 +4156,7 @@ ConstraintSystem::addConstraintImpl(ConstraintKind kind, Type first,
4156
4156
TypeMatchOptions subflags = TMF_GenerateConstraints;
4157
4157
switch (kind) {
4158
4158
case ConstraintKind::Equal:
4159
+ case ConstraintKind::Bind:
4159
4160
case ConstraintKind::BindParam:
4160
4161
case ConstraintKind::Subtype:
4161
4162
case ConstraintKind::Conversion:
@@ -4188,16 +4189,6 @@ ConstraintSystem::addConstraintImpl(ConstraintKind kind, Type first,
4188
4189
case ConstraintKind::Defaultable:
4189
4190
return simplifyDefaultableConstraint (first, second, subflags, locator);
4190
4191
4191
- case ConstraintKind::Bind: { // FIXME: This should go through matchTypes() above
4192
- // FALLBACK CASE: do the slow thing.
4193
- auto c = Constraint::create (*this , kind, first, second, DeclName (),
4194
- FunctionRefKind::Compound,
4195
- getConstraintLocator (locator));
4196
- if (isFavored) c->setFavored ();
4197
- addConstraint (c);
4198
- return SolutionKind::Solved;
4199
- }
4200
-
4201
4192
case ConstraintKind::ValueMember:
4202
4193
case ConstraintKind::UnresolvedValueMember:
4203
4194
case ConstraintKind::TypeMember:
0 commit comments