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