From f8e805a6149e271c56dd125d26ad9c33f338269a Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 15 Oct 2018 10:43:56 +0200 Subject: fixes #2760 --- tests/distinct/tdistinct.nim | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/distinct/tdistinct.nim') diff --git a/tests/distinct/tdistinct.nim b/tests/distinct/tdistinct.nim index d200b3e34..52728fc2b 100644 --- a/tests/distinct/tdistinct.nim +++ b/tests/distinct/tdistinct.nim @@ -75,3 +75,13 @@ block tconsts: type MyBoolArr = distinct array[3, bool] const barr:MyBoolArr = MyBoolArr([true, false, true]) + +# bug #2760 + +type + DistTup = distinct tuple + foo, bar: string + +const d: DistTup = DistTup(( + foo:"FOO", bar:"BAR" +)) -- cgit 1.4.1-2-gfad0