Update record attribute formatting
This commit is contained in:
parent
39fcd51a7c
commit
10c8c9b98f
2 changed files with 3 additions and 1 deletions
|
|
@ -625,7 +625,7 @@ pub const AttributeInfo = union(enum) {
|
|||
|
||||
try w.splatByteAll(' ', depth * component_indent);
|
||||
try w.print("{d}:\n", .{ i });
|
||||
try component.indentedFormat(w, depth, component_indent, constant_pool);
|
||||
try component.indentedFormat(w, depth, component_indent + 1, constant_pool);
|
||||
}
|
||||
},
|
||||
.permitted_subclasses => |attr| {
|
||||
|
|
|
|||
2
testsuite/classes/java/Record.java
Normal file
2
testsuite/classes/java/Record.java
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
public record Record(String name, int age) {}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue