thello2.nim 168 B

123456789101112
  1. discard """
  2. output: '''(a: 3, b: 4, s: "abc")'''
  3. """
  4. type
  5. MyObject = object
  6. a, b: int
  7. s: string
  8. let obj = MyObject(a: 3, b: 4, s: "abc")
  9. echo obj