diff options
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() |