Skip to content

Instantly share code, notes, and snippets.

@brson
Created April 7, 2011 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brson/909006 to your computer and use it in GitHub Desktop.
Save brson/909006 to your computer and use it in GitHub Desktop.
fn id[T](&T t) -> T {
ret t;
}
fn main() {
auto expected = @100;
auto actual = id[@int](expected);
log *actual;
check (*expected == *actual);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment