mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 13:33:22 +00:00
Use target field types in tuple conversions.
This commit is contained in:
19
tests/tuples/tconver_tuple.nim
Normal file
19
tests/tuples/tconver_tuple.nim
Normal 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
|
||||
Reference in New Issue
Block a user