082_anonymous_structs3.patch 355 B

12345678910111213141516
  1. 85c85
  2. < const fields = ???;
  3. ---
  4. > const fields = @typeInfo(@TypeOf(tuple)).Struct.fields;
  5. 92c92
  6. < for (fields) |field| {
  7. ---
  8. > inline for (fields) |field| {
  9. 120,122c120,122
  10. < field.???,
  11. < field.???,
  12. < ???,
  13. ---
  14. > field.name,
  15. > field.type,
  16. > @field(tuple, field.name),