tconver_tuple.nim 324 B

123456789101112131415161718192021222324
  1. # Bug 4479
  2. type
  3. MyTuple = tuple
  4. num: int
  5. strings: seq[string]
  6. ints: seq[int]
  7. var foo = MyTuple((
  8. num: 7,
  9. strings: @[],
  10. ints: @[],
  11. ))
  12. var bar = (
  13. num: 7,
  14. strings: @[],
  15. ints: @[],
  16. ).MyTuple
  17. var fooUnnamed = MyTuple((7, @[], @[]))
  18. var n = 7
  19. var fooSym = MyTuple((num: n, strings: @[], ints: @[]))