diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-09-04 15:57:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-04 15:57:16 +0200 |
commit | e8dad482a309b1c33056aba22550d691845414d7 (patch) | |
tree | d6ece825431349d2287eaa068ecf34a863d54172 /tests/arc | |
parent | b3ad68edea72f04275c9b1e330cafb77254d945c (diff) | |
download | Nim-e8dad482a309b1c33056aba22550d691845414d7.tar.gz |
fixes #16246 (#18800)
Diffstat (limited to 'tests/arc')
-rw-r--r-- | tests/arc/tarcmisc.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/arc/tarcmisc.nim b/tests/arc/tarcmisc.nim index 7daea62c8..951ae25f3 100644 --- a/tests/arc/tarcmisc.nim +++ b/tests/arc/tarcmisc.nim @@ -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() |