summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-10-15 10:43:56 +0200
committerAraq <rumpf_a@web.de>2018-10-15 10:43:56 +0200
commitf8e805a6149e271c56dd125d26ad9c33f338269a (patch)
tree4cd6f2fa56155463654494901251d325a490a3e8 /tests
parentfe091997aa800d414c6b8d994474e666778bd00c (diff)
downloadNim-f8e805a6149e271c56dd125d26ad9c33f338269a.tar.gz
fixes #2760
Diffstat (limited to 'tests')
-rw-r--r--tests/distinct/tdistinct.nim10
1 files changed, 10 insertions, 0 deletions
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"
+))