t3734.nim 227 B

123456789101112131415161718
  1. discard """
  2. output: "i0"
  3. """
  4. type
  5. Application = object
  6. config: void
  7. i: int
  8. f: void
  9. proc printFields(rec: Application) =
  10. for k, v in fieldPairs(rec):
  11. echo k, v
  12. var app: Application
  13. printFields(app)