Validate pragmas attached to for variables (#8749)

Fixes #8741
This commit is contained in:
LemonBoy 2018-08-23 21:43:10 +02:00 • committed by Andreas Rumpf
commit b1c2416abd
3 changed files with 13 additions and 0 deletions

10
tests/pragmas/t8741.nim Normal file
View file

@ -0,0 +1,10 @@
discard """
line: 9
errormsg: "attempting to call undeclared routine: 'foobar'"
"""
for a {.gensym, inject.} in @[1,2,3]:
discard
for a {.foobar.} in @[1,2,3]:
discard