parent
70c575095e
commit
e278a781fc
2 changed files with 15 additions and 0 deletions
13
tests/misc/t21109.nim
Normal file
13
tests/misc/t21109.nim
Normal file
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue