mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CodeCompletion] Don't complete operator = after Void result
print(1) = blah doesn't make much sense.
This commit is contained in:
@@ -3087,7 +3087,7 @@ public:
|
||||
}
|
||||
|
||||
if (leadingSequence.empty() && LHS->getType() &&
|
||||
LHS->getType()->isAssignableType()) {
|
||||
LHS->getType()->isLValueType()) {
|
||||
addAssignmentOperator(LHS->getType()->getRValueType(),
|
||||
CurrDeclContext->getASTContext().TheEmptyTupleType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user