2011-12-16 15:50:22 -06:00
|
|
|
// error-pattern: mismatched types: expected lambda(++uint) -> uint
|
|
|
|
|
|
|
|
fn test(f: lambda(uint) -> uint) -> uint {
|
|
|
|
ret f(22u);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let f = sendfn(x: uint) -> uint { ret 4u; };
|
2011-12-22 16:42:52 -06:00
|
|
|
log_full(core::debug, test(f));
|
2011-12-16 15:50:22 -06:00
|
|
|
}
|