Box arguments that are supposed to be boxed.

This commit is contained in:
Graydon Hoare 2010-07-01 23:50:58 -07:00
parent f0faeaed25
commit 60c6ae3ad5
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
type option[T] = tag(some(@T), none());
fn main() {
let option[int] a = some[int](10);
let option[int] a = some[int](@10);
a = none[int]();
}

View file

@ -3,5 +3,5 @@
type list = tag(cons(int,@list), nil());
fn main() {
cons(10, cons(11, cons(12, nil())));
cons(10, @cons(11, @cons(12, @nil())));
}

View file

@ -3,5 +3,5 @@
type mlist = tag(cons(int,mutable @mlist), nil());
fn main() {
cons(10, cons(11, cons(12, nil())));
cons(10, @cons(11, @cons(12, @nil())));
}