Bring swap through typechecking and typestate.
This commit is contained in:
parent
066599104a
commit
cfd1f74ebb
7 changed files with 34 additions and 0 deletions
|
|
@ -704,6 +704,12 @@ fn print_expr(&ps s, &@ast::expr expr) {
|
|||
word_space(s, "=");
|
||||
print_expr(s, rhs);
|
||||
}
|
||||
case (ast::expr_swap(?lhs, ?rhs, _)) {
|
||||
print_expr(s, lhs);
|
||||
space(s.s);
|
||||
word_space(s, "<->");
|
||||
print_expr(s, rhs);
|
||||
}
|
||||
case (ast::expr_assign_op(?op, ?lhs, ?rhs, _)) {
|
||||
print_expr(s, lhs);
|
||||
space(s.s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue