check for list size: skiped varargs parameter (16666)

This commit is contained in:
anna
2009-10-28 21:47:32 +03:00
parent ce47db97bc
commit d2ba61a99e
4 changed files with 29 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
class Test {
void fo<caret>o(int i, int ... ja){
}
void bar() {
foo(0);
foo(0, 1);
foo(0, 1, 2);
foo(0, new int[]{3, 4});
foo(0, new int[0]);
}
}

View File

@@ -0,0 +1,12 @@
class Test {
void foo(int i){
}
void bar() {
foo(0);
foo(0);
foo(0);
foo(0);
foo(0);
}
}