diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-05-15 21:12:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-15 21:12:07 +0200 |
commit | e26545797e23b40cd857f7ccba63919cb87ed51b (patch) | |
tree | 3e98b889523ce75d2661ea9e4007c11cb8622569 /tests | |
parent | 4e0e706cfe90840043dfff965e0f2f544e8f3698 (diff) | |
download | Nim-e26545797e23b40cd857f7ccba63919cb87ed51b.tar.gz |
fixes #7816 (#11261)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/tsugar.nim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/stdlib/tsugar.nim b/tests/stdlib/tsugar.nim index 111ca96a4..5006cf52b 100644 --- a/tests/stdlib/tsugar.nim +++ b/tests/stdlib/tsugar.nim @@ -1,5 +1,5 @@ discard """ - output: "" + output: "@[@[], @[], @[], @[], @[]]" """ import sugar import macros @@ -26,3 +26,12 @@ block distinctBase: Uint[bits: static[int]] = distinct uintImpl(bits) doAssert Uint[128].distinctBase is UintImpl[uint64] + +# bug #7816 +import sequtils + +proc tester[T](x: T) = + let test = toSeq(0..4).map(i => newSeq[int]()) + echo test + +tester(1) |