2011-04-05 19:23:52 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
2011-07-27 07:19:39 -05:00
|
|
|
fn id[T](t: &T) -> T { ret t; }
|
2011-04-05 19:23:52 -05:00
|
|
|
|
|
|
|
fn main() {
|
2011-07-27 07:19:39 -05:00
|
|
|
let expected = @100;
|
|
|
|
let actual = id[@int](expected);
|
2011-06-15 13:19:50 -05:00
|
|
|
log *actual;
|
|
|
|
assert (*expected == *actual);
|
2011-04-05 19:23:52 -05:00
|
|
|
}
|