2012-01-09 18:12:37 -06:00
|
|
|
// error-pattern: mismatched types: expected `fn@(++uint) -> uint`
|
2011-12-16 15:50:22 -06:00
|
|
|
|
2012-01-09 18:12:37 -06:00
|
|
|
fn test(f: fn@(uint) -> uint) -> uint {
|
2011-12-16 15:50:22 -06:00
|
|
|
ret f(22u);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let f = sendfn(x: uint) -> uint { ret 4u; };
|
2011-12-22 19:53:53 -06:00
|
|
|
log(debug, test(f));
|
2011-12-25 13:27:09 -06:00
|
|
|
}
|