mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use ConstraintLocator::Member for members rather than ConstraintLocator::MemberRefBase.
Swift SVN r21920
This commit is contained in:
@@ -73,9 +73,8 @@ namespace {
|
||||
auto tv = CS.createTypeVariable(
|
||||
CS.getConstraintLocator(expr, ConstraintLocator::Member),
|
||||
TVO_CanBindToLValue);
|
||||
// FIXME: Constraint below should be a ::Member constraint?
|
||||
CS.addValueMemberConstraint(baseTy, name, tv,
|
||||
CS.getConstraintLocator(expr, ConstraintLocator::MemberRefBase));
|
||||
CS.getConstraintLocator(expr, ConstraintLocator::Member));
|
||||
return tv;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user