This commit is contained in:
Dmitry Jemerov
2009-09-10 21:19:28 +04:00
parent d13d5f3ac8
commit 4e0b0c39af
56 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
public class Param {
private final int[] i;
public Param(int... i) {
this.i = i;
}
public int[] getI() {
return i;
}
}

View File

@@ -0,0 +1,10 @@
class Test {
void foo(Param param) {
if (param.getI().lenght == 0) {
}
}
void bar(){
foo(new Param(1, 2));
}
}

View File

@@ -0,0 +1,10 @@
class Test {
void foo(int... i) {
if (i.lenght == 0) {
}
}
void bar(){
foo(1, 2);
}
}