tobjconstr_regression.nim 467 B

123456789101112131415
  1. discard """
  2. output: '''@[(username: "user", role: "admin", description: "desc", email_addr: "email"), (username: "user", role: "admin", description: "desc", email_addr: "email")]'''
  3. """
  4. type
  5. User = object of RootObj
  6. username, role, description, email_addr: string
  7. # bug 5055
  8. let us4 = @[
  9. User(username:"user", role:"admin", description:"desc", email_addr:"email"),
  10. User(username:"user", role:"admin", description:"desc", email_addr:"email"),
  11. ]
  12. echo us4