You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
521 B
37 lines
521 B
package records;
|
|
|
|
public record TestRecordVararg(int x, int[]... y) {
|
|
public TestRecordVararg(int x, int[]... y) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
public int x() {
|
|
return this.x;
|
|
}
|
|
|
|
public int[][] y() {
|
|
return this.y;// 3
|
|
}
|
|
}
|
|
|
|
class 'records/TestRecordVararg' {
|
|
method '<init> (I[[I)V' {
|
|
6 4
|
|
b 5
|
|
e 6
|
|
}
|
|
|
|
method 'x ()I' {
|
|
1 9
|
|
4 9
|
|
}
|
|
|
|
method 'y ()[[I' {
|
|
1 13
|
|
4 13
|
|
}
|
|
}
|
|
|
|
Lines mapping:
|
|
3 <-> 14
|
|
|