rewrite 'mutable &' as '& mutable', corresponding to grammar shift.
This commit is contained in:
parent
e828b2a94d
commit
8e4a10790f
|
@ -1,4 +1,4 @@
|
||||||
fn incr(mutable &int x) -> bool {
|
fn incr(& mutable int x) -> bool {
|
||||||
x += 1;
|
x += 1;
|
||||||
check (false);
|
check (false);
|
||||||
ret false;
|
ret false;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
type point = rec(int x, int y, mutable int z);
|
type point = rec(int x, int y, mutable int z);
|
||||||
|
|
||||||
fn f(mutable &point p) {
|
fn f(& mutable point p) {
|
||||||
p.z = 13;
|
p.z = 13;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue