Add regresion tests for issue #1448 and #1387.

This commit is contained in:
Kevin Atkinson 2012-01-23 00:29:11 -07:00 committed by Brian Anderson
parent 4795e19d6d
commit 5e60facf78
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// 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; }
assert (#apply[add, [y, 15]] == 16); //! ERROR unresolved name: y
}

View File

@ -0,0 +1,5 @@
// Regresion test for issue #1448 and #1386
fn main() {
#debug["%u", 10]; //! ERROR mismatched types
}