add testcase for #7308 (#18849)

This commit is contained in:
flywind 2021-09-15 01:39:55 +08:00 • committed by GitHub
commit bf1700bab1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 11 deletions

View file

@ -463,14 +463,3 @@ 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()