2011-12-28 15:41:31 -06:00
|
|
|
// error-pattern: mismatched types: expected `lambda(++uint) -> uint`
|
2011-12-16 15:50:22 -06:00
|
|
|
|
|
|
|
fn test(f: lambda(uint) -> uint) -> uint {
|
|
|
|
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
|
|
|
}
|