Revert "Revert "Add a test case for #898. Closes #898.""

This reverts commit e305ab3851.

Oops again.  Reverting a mistaken revert.
This commit is contained in:
Lindsey Kuper 2011-10-11 22:03:23 -04:00
parent e305ab3851
commit 813c2eb369

View file

@ -0,0 +1,11 @@
fn even(&&e: int) -> bool {
e % 2 == 0
}
fn log_if<T>(c: fn(T)->bool, e: T) {
if c(e) { log e; }
}
fn main() {
(bind log_if(even, _))(2);
}