2012-03-28 19:01:42 -05:00
|
|
|
// Check that the only error msg we report is the
|
|
|
|
// mismatch between the # of params, and not other
|
|
|
|
// unrelated errors.
|
|
|
|
|
|
|
|
fn foo(a: int, b: int, c: int, d:int) {
|
|
|
|
fail;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
foo(1, 2, 3);
|
2012-06-30 06:23:59 -05:00
|
|
|
//~^ ERROR this function takes 4 parameters but 3
|
2012-03-28 19:01:42 -05:00
|
|
|
}
|