No more "transplant" behavior in "let @x = y", gotta box explicitly.

This commit is contained in:
Graydon Hoare 2010-06-30 21:17:45 -07:00
parent e460da3889
commit 8b8186db87

View File

@ -10,7 +10,7 @@ fn f(@point p) {
fn main() {
let point a = rec(x=10, y=11, z=mutable 12);
let @point b = a;
let @point b = @a;
check (b.z == 12);
f(b);
check (a.z == 12);