2011-06-27 12:58:05 -05:00
|
|
|
fn main() {
|
2011-08-02 14:22:17 -05:00
|
|
|
#macro([#mylambda[x,body], {fn f(x: int) -> int { ret body }; f}]);
|
2011-07-13 17:44:09 -05:00
|
|
|
|
2011-08-02 14:22:17 -05:00
|
|
|
assert(#mylambda[y,y*2](8) == 16);
|
2011-06-27 12:58:05 -05:00
|
|
|
}
|