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.
39 lines
679 B
39 lines
679 B
package records;
|
|
|
|
public record TestRecordGenericVararg<T>(T first, T... other) {
|
|
@SafeVarargs
|
|
public TestRecordGenericVararg(T first, T... other) {
|
|
this.first = first;// 5
|
|
this.other = other;
|
|
}
|
|
|
|
public T first() {
|
|
return this.first;
|
|
}
|
|
|
|
public T[] other() {
|
|
return this.other;// 3
|
|
}
|
|
}
|
|
|
|
class 'records/TestRecordGenericVararg' {
|
|
method '<init> (Ljava/lang/Object;[Ljava/lang/Object;)V' {
|
|
6 5
|
|
b 6
|
|
e 7
|
|
}
|
|
|
|
method 'first ()Ljava/lang/Object;' {
|
|
1 10
|
|
4 10
|
|
}
|
|
|
|
method 'other ()[Ljava/lang/Object;' {
|
|
1 14
|
|
4 14
|
|
}
|
|
}
|
|
|
|
Lines mapping:
|
|
3 <-> 15
|
|
5 <-> 6
|
|
|