fix chain assignment semicolon
This commit is contained in:
parent
d7775e3dca
commit
ee42caee0e
@ -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;
|
||||
}
|
||||
|
@ -478,7 +478,7 @@ pub fn addCases(cases: &tests.ParseCContext) {
|
||||
\\ c = {
|
||||
\\ const _tmp = a;
|
||||
\\ b = _tmp;
|
||||
\\ _tmp;
|
||||
\\ _tmp
|
||||
\\ };
|
||||
\\}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user