mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
test++
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
public class Param {
|
||||
private final int[] i;
|
||||
|
||||
public Param(int... i) {
|
||||
this.i = i;
|
||||
}
|
||||
|
||||
public int[] getI() {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
void foo(Param param) {
|
||||
if (param.getI().lenght == 0) {
|
||||
}
|
||||
}
|
||||
|
||||
void bar(){
|
||||
foo(new Param(1, 2));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
class Test {
|
||||
void foo(int... i) {
|
||||
if (i.lenght == 0) {
|
||||
}
|
||||
}
|
||||
|
||||
void bar(){
|
||||
foo(1, 2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user