[CodeCompletion] Don't complete operator = after Void result

print(1) = blah

doesn't make much sense.
This commit is contained in:
Ben Langmuir
2016-03-18 15:58:56 -07:00
parent 5d054cb5df
commit b842160f85
2 changed files with 10 additions and 2 deletions

View File

@@ -3087,7 +3087,7 @@ public:
}
if (leadingSequence.empty() && LHS->getType() &&
LHS->getType()->isAssignableType()) {
LHS->getType()->isLValueType()) {
addAssignmentOperator(LHS->getType()->getRValueType(),
CurrDeclContext->getASTContext().TheEmptyTupleType);
}