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 421514f commit 662238dCopy full SHA for 662238d
lib/Parse/ParseDecl.cpp
@@ -5666,7 +5666,7 @@ void Parser::parseAbstractFunctionBody(AbstractFunctionDecl *AFD) {
5666
}
5667
} else if (auto *E = Element.dyn_cast<Expr *>()) {
5668
if (auto SE = dyn_cast<SequenceExpr>(E->getSemanticsProvidingExpr())) {
5669
- if (SE->getNumElements() > 0 && isa<AssignExpr>(SE->getElement(1))) {
+ if (SE->getNumElements() > 1 && isa<AssignExpr>(SE->getElement(1))) {
5670
// This is an assignment. We don't want to implicitly return
5671
// it.
5672
return;
0 commit comments