We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 843ac0b commit f8ef213Copy full SHA for f8ef213
lib/Parse/ParseDecl.cpp
@@ -5685,7 +5685,7 @@ void Parser::parseAbstractFunctionBody(AbstractFunctionDecl *AFD) {
5685
}
5686
} else if (auto *E = Element.dyn_cast<Expr *>()) {
5687
if (auto SE = dyn_cast<SequenceExpr>(E->getSemanticsProvidingExpr())) {
5688
- if (SE->getNumElements() > 0 && isa<AssignExpr>(SE->getElement(1))) {
+ if (SE->getNumElements() > 1 && isa<AssignExpr>(SE->getElement(1))) {
5689
// This is an assignment. We don't want to implicitly return
5690
// it.
5691
return;
0 commit comments