fix chain assignment semicolon

This commit is contained in:
Josh Wolfe 2017-09-20 23:49:46 -07:00
parent d7775e3dca
commit ee42caee0e
2 changed files with 2 additions and 1 deletions

View File

@ -985,6 +985,7 @@ static AstNode *trans_create_assign(Context *c, bool result_used, AstNode *block
// _tmp
child_block->data.block.statements.append(trans_create_node_symbol(c, tmp_var_name));
child_block->data.block.last_statement_is_result_expression = true;
return child_block;
}

View File

@ -478,7 +478,7 @@ pub fn addCases(cases: &tests.ParseCContext) {
\\ c = {
\\ const _tmp = a;
\\ b = _tmp;
\\ _tmp;
\\ _tmp
\\ };
\\}
);