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 fe0e683 commit 2e3b987Copy full SHA for 2e3b987
lib/Parse/ParseStmt.cpp
@@ -1887,7 +1887,7 @@ bool Parser::isStartOfConditionalStmtBody() {
1887
// print("body") }
1888
return false;
1889
}
1890
- if (Tok.is(tok::oper_binary_spaced)) {
+ if (Tok.is(tok::oper_binary_spaced) || Tok.is(tok::oper_binary_unspaced)) {
1891
// If current token is a binary operator this can't be the statement body
1892
// since an `if` expression can't be the left-hand side of an operator,
1893
// e.g. if true, { true }
0 commit comments