diff options
author | Araq <rumpf_a@web.de> | 2018-10-15 10:43:56 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-10-15 10:43:56 +0200 |
commit | f8e805a6149e271c56dd125d26ad9c33f338269a (patch) | |
tree | 4cd6f2fa56155463654494901251d325a490a3e8 /tests | |
parent | fe091997aa800d414c6b8d994474e666778bd00c (diff) | |
download | Nim-f8e805a6149e271c56dd125d26ad9c33f338269a.tar.gz |
fixes #2760
Diffstat (limited to 'tests')
-rw-r--r-- | tests/distinct/tdistinct.nim | 10 |
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" +)) |