2011-06-15 13:19:50 -05:00
|
|
|
|
2011-05-31 18:11:30 -05:00
|
|
|
use std;
|
|
|
|
import std::uint;
|
|
|
|
|
2011-07-26 07:49:40 -05:00
|
|
|
fn test(@rec(int a, int b, int c) foo) -> @rec(int a, int b, int c) {
|
2011-05-31 18:11:30 -05:00
|
|
|
auto bar <- foo;
|
|
|
|
auto baz <- bar;
|
|
|
|
auto quux <- baz;
|
|
|
|
ret quux;
|
|
|
|
}
|
|
|
|
|
2011-07-26 07:49:40 -05:00
|
|
|
fn main() {
|
|
|
|
auto x = @rec(a=1, b=2, c=3);
|
|
|
|
auto y = test(x);
|
|
|
|
assert (y.c == 3);
|
|
|
|
}
|