parent
1a9690cc62
commit
9839b0eb7f
|
@ -93,6 +93,9 @@ fn (mut p Parser) partial_assign_stmt(left []ast.Expr) ast.Stmt {
|
||||||
// a, b = b, a
|
// a, b = b, a
|
||||||
for r in right {
|
for r in right {
|
||||||
has_cross_var = p.check_cross_variables(left, r)
|
has_cross_var = p.check_cross_variables(left, r)
|
||||||
|
if op !in [.assign, .decl_assign] {
|
||||||
|
p.error('unexpected $op.str(), expecting := or = or comma')
|
||||||
|
}
|
||||||
if has_cross_var {
|
if has_cross_var {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue