Files
Nim/tests/macros/t18203.nim
Clyybber c5cf21c0c4 Don't report unused hints for consumed AST (#18270)
* Fix #18203

* Add testcase

* Fix testcase

* Fix test
2021-06-16 02:45:05 +02:00

16 lines
283 B
Nim

discard """
matrix: "--hint:SuccessX:off --hint:Link:off --hint:Conf:off --hint:CC:off --hint:XDeclaredButNotUsed:on"
nimout: '''
'''
nimoutFull: true
action: compile
"""
# bug #18203
import std/macros
macro foo(x: typed) = newProc ident"bar"
proc bar() {.foo.} = raise
bar()