summary refs log tree commit diff stats
path: root/tests/tuples/tconver_tuple.nim
blob: 306da77fe37cec7a1dddcb8c30d80f3d4de3d07d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Bug 4479

type
  MyTuple = tuple
    num: int
    strings: seq[string]
    ints: seq[int]

var foo = MyTuple((
  num: 7,
  strings: @[],
  ints: @[],
))

var bar = (
  num: 7,
  strings: @[],
  ints: @[],
).MyTuple

var fooUnnamed = MyTuple((7, @[], @[]))
var n = 7
var fooSym = MyTuple((num: n, strings: @[], ints: @[]))