diff --git a/src/TypedValue.zig b/src/TypedValue.zig index 356a3253e3aeb56721efc2b9a9d77fc00b1d1e09..6e85a63e5046bd3a3a24ab64088f100dceb9f268 100644 --- a/src/TypedValue.zig +++ b/src/TypedValue.zig @@ -437,7 +437,7 @@ fn printAggregate( if (i != 0) try writer.writeAll(", "); const field_name = switch (ip.indexToKey(ty.toIntern())) { - .struct_type => |x| x.field_names.get(ip)[i].toOptional(), + .struct_type => |x| x.fieldName(ip, i), .anon_struct_type => |x| if (x.isTuple()) .none else x.names.get(ip)[i].toOptional(), else => unreachable, };