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

Seems to have been fixed.
This commit is contained in:
Brian Anderson 2011-10-11 16:50:50 -07:00
parent 55379a97d4
commit f480203fdd

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);
}