This commit is contained in:
Andreas Rumpf 2019-05-15 21:12:07 +02:00 • committed by GitHub
commit e26545797e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View file

@ -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)