This commit is contained in:
Andreas Rumpf 2021-09-04 15:57:16 +02:00 • committed by GitHub
commit e8dad482a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 2 deletions

View file

@ -463,3 +463,14 @@ proc putValue[T](n: T) =
echo b.n
useForward()
# bug #16246
proc testWeirdTypeAliases() =
var values = newSeq[cuint](8)
# var values: seq[cuint] does not produce codegen error
var drawCb = proc(): seq[uint32] =
result = newSeq[uint32](10)
testWeirdTypeAliases()