Test for issue #980

This commit is contained in:
Brian Anderson 2011-09-26 23:24:53 -07:00
parent 6b42ad5ea0
commit df19b7a13a

View file

@ -0,0 +1,13 @@
tag maybe_pointy {
no_pointy;
yes_pointy(@pointy);
}
type pointy = {
mutable x : maybe_pointy
};
fn main() {
let m = @{ mutable x : no_pointy };
m.x = yes_pointy(m);
}