More checks for custom pragmas placement (#8765)
We're not interested in custom pragmas attached to certain node kinds so the compiler silently ignored them.
This commit is contained in:
parent
56de4c81b2
commit
6f13184e40
2 changed files with 7 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
line: 9
|
||||
errormsg: "attempting to call undeclared routine: 'foobar'"
|
||||
errormsg: "cannot attach a custom pragma to 'a'"
|
||||
"""
|
||||
|
||||
for a {.gensym, inject.} in @[1,2,3]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue