summary refs log tree commit diff stats
path: root/tests/arc
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-09-04 15:57:16 +0200
committerGitHub <noreply@github.com>2021-09-04 15:57:16 +0200
commite8dad482a309b1c33056aba22550d691845414d7 (patch)
treed6ece825431349d2287eaa068ecf34a863d54172 /tests/arc
parentb3ad68edea72f04275c9b1e330cafb77254d945c (diff)
downloadNim-e8dad482a309b1c33056aba22550d691845414d7.tar.gz
fixes #16246 (#18800)
Diffstat (limited to 'tests/arc')
-rw-r--r--tests/arc/tarcmisc.nim11
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()