mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Remove the concept of a "nonsettable lvalue": Now everything that is
nonsettable is represented as an rvalue. Yay for one less concept in the AST. Swift SVN r11640
This commit is contained in:
@@ -1509,10 +1509,7 @@ ConstraintSystem::simplifyMemberConstraint(const Constraint &constraint) {
|
||||
// values.
|
||||
if (!isMetatype && !baseObjTy->hasReferenceSemantics() &&
|
||||
isa<FuncDecl>(result) && cast<FuncDecl>(result)->isMutating() &&
|
||||
result->isInstanceMember() &&
|
||||
// Reject non-values and non-settable lvalues.
|
||||
(!baseTy->is<LValueType>() ||
|
||||
!baseTy->castTo<LValueType>()->isSettable()))
|
||||
result->isInstanceMember() && !baseTy->is<LValueType>())
|
||||
continue;
|
||||
|
||||
// If we're looking into an existential type, check whether this
|
||||
|
||||
Reference in New Issue
Block a user