From de41649b0e044729583e8c5061593bc7ebff594d Mon Sep 17 00:00:00 2001 From: Matthew Baulch Date: Thu, 14 Jul 2016 20:51:40 +1000 Subject: Use target field types in tuple conversions. --- tests/tuples/tconver_tuple.nim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/tuples/tconver_tuple.nim (limited to 'tests/tuples/tconver_tuple.nim') diff --git a/tests/tuples/tconver_tuple.nim b/tests/tuples/tconver_tuple.nim new file mode 100644 index 000000000..b37be968a --- /dev/null +++ b/tests/tuples/tconver_tuple.nim @@ -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 -- cgit 1.4.1-2-gfad0