mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Bring back 'assignment' as an infix operator modifier.
We need it to decide whether to admit infix operators into an optional chain, such as 'x? = 0' or 'x?.y += 2'. Swift SVN r20295
This commit is contained in:
@@ -1501,8 +1501,10 @@ void Serializer::writeDecl(const Decl *D) {
|
||||
addDeclRef(DC),
|
||||
associativity,
|
||||
op->getPrecedence(),
|
||||
op->isAssignment(),
|
||||
op->isAssociativityImplicit(),
|
||||
op->isPrecedenceImplicit());
|
||||
op->isPrecedenceImplicit(),
|
||||
op->isAssignmentImplicit());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user