Use target field types in tuple conversions.

This commit is contained in:
Matthew Baulch
2016-07-14 20:51:40 +10:00
parent 813828f690
commit de41649b0e
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# 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