mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Constraint solver] Remove 'type member' constraint.
Only some fallback code in the for-each binding checking code was using this constraint. Implement those checks more directly.
This commit is contained in:
@@ -720,7 +720,6 @@ static bool shouldBindToValueType(Constraint *constraint)
|
||||
case ConstraintKind::DynamicTypeOf:
|
||||
case ConstraintKind::ValueMember:
|
||||
case ConstraintKind::UnresolvedValueMember:
|
||||
case ConstraintKind::TypeMember:
|
||||
case ConstraintKind::Defaultable:
|
||||
case ConstraintKind::Disjunction:
|
||||
llvm_unreachable("shouldBindToValueType() may only be called on "
|
||||
@@ -950,7 +949,6 @@ static PotentialBindings getPotentialBindings(ConstraintSystem &cs,
|
||||
|
||||
case ConstraintKind::ValueMember:
|
||||
case ConstraintKind::UnresolvedValueMember:
|
||||
case ConstraintKind::TypeMember:
|
||||
// If our type variable shows up in the base type, there's
|
||||
// nothing to do.
|
||||
// FIXME: Can we avoid simplification here?
|
||||
|
||||
Reference in New Issue
Block a user