| ... | @@ -437,7 +437,7 @@ fn printAggregate( | ... | @@ -437,7 +437,7 @@ fn printAggregate( |
| 437 | if (i != 0) try writer.writeAll(", "); | 437 | if (i != 0) try writer.writeAll(", "); |
| 438 | | 438 | |
| 439 | const field_name = switch (ip.indexToKey(ty.toIntern())) { | 439 | const field_name = switch (ip.indexToKey(ty.toIntern())) { |
| 440 | .struct_type => |x| x.field_names.get(ip)[i].toOptional(), | 440 | .struct_type => |x| x.fieldName(ip, i), |
| 441 | .anon_struct_type => |x| if (x.isTuple()) .none else x.names.get(ip)[i].toOptional(), | 441 | .anon_struct_type => |x| if (x.isTuple()) .none else x.names.get(ip)[i].toOptional(), |
| 442 | else => unreachable, | 442 | else => unreachable, |
| 443 | }; | 443 | }; |