diff options
author | Bung <crc32@qq.com> | 2022-12-19 19:35:15 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 12:35:15 +0100 |
commit | e278a781fc5bfc115326ed6c1873268d51b25303 (patch) | |
tree | fa3cceeab817ff3e28f5d704c50ff4051997b42d /tests/misc/t21109.nim | |
parent | 70c575095e89497c63af5d8b2c3ed7dca802179f (diff) | |
download | Nim-e278a781fc5bfc115326ed6c1873268d51b25303.tar.gz |
fix #21109 (#21127)
Diffstat (limited to 'tests/misc/t21109.nim')
-rw-r--r-- | tests/misc/t21109.nim | 13 |
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() |