mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Plumb the DeclContext of the use site down to the "doesVarDeclMemberProduceLValue"
function. Pretty soon, whether something is an lvalue or not will depend on who is asking. Swift SVN r12507
This commit is contained in:
@@ -647,7 +647,7 @@ ConstraintSystem::getTypeOfReference(ValueDecl *value,
|
||||
}
|
||||
|
||||
// Determine the type of the value, opening up that type if necessary.
|
||||
Type valueType = TC.getUnopenedTypeOfReference(value, Type(),
|
||||
Type valueType = TC.getUnopenedTypeOfReference(value, Type(), DC,
|
||||
/*wantInterfaceType=*/true);
|
||||
|
||||
// Adjust the type of the reference.
|
||||
@@ -843,7 +843,7 @@ ConstraintSystem::getTypeOfMemberReference(Type baseTy, ValueDecl *value,
|
||||
openedType = openType(genericFn, dc, /*skipProtocolSelfConstraint=*/true,
|
||||
opener);
|
||||
} else {
|
||||
openedType = TC.getUnopenedTypeOfReference(value, baseTy,
|
||||
openedType = TC.getUnopenedTypeOfReference(value, baseTy, DC,
|
||||
/*wantInterfaceType=*/true);
|
||||
|
||||
Type selfTy;
|
||||
|
||||
Reference in New Issue
Block a user