summary refs log tree commit diff stats
path: root/tests/misc/t21109.nim
diff options
context:
space:
mode:
authorBung <crc32@qq.com>2022-12-19 19:35:15 +0800
committerGitHub <noreply@github.com>2022-12-19 12:35:15 +0100
commite278a781fc5bfc115326ed6c1873268d51b25303 (patch)
treefa3cceeab817ff3e28f5d704c50ff4051997b42d /tests/misc/t21109.nim
parent70c575095e89497c63af5d8b2c3ed7dca802179f (diff)
downloadNim-e278a781fc5bfc115326ed6c1873268d51b25303.tar.gz
fix #21109 (#21127)
Diffstat (limited to 'tests/misc/t21109.nim')
-rw-r--r--tests/misc/t21109.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/misc/t21109.nim b/tests/misc/t21109.nim
new file mode 100644
index 000000000..0f7980896
--- /dev/null
+++ b/tests/misc/t21109.nim
@@ -0,0 +1,13 @@
+discard """
+  action: reject
+  errormsg: "type expected"
+  file: "iterators.nim"
+"""
+
+
+template b(j: untyped) = j
+template m() = discard
+
+b:
+  for t, f in @[]:
+    m()