2012-01-23 00:29:11 -07:00
|
|
|
// Regresion test for issue #1448 and #1386
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
#macro[[#apply[f, [x, ...]], f(x, ...)]];
|
|
|
|
fn add(a: int, b: int) -> int { ret a + b; }
|
2012-06-30 12:23:59 +01:00
|
|
|
assert (#apply[add, [y, 15]] == 16); //~ ERROR unresolved name: y
|
2012-01-23 00:29:11 -07:00
|
|
|
}
|