parent
e718a4a058
commit
fbc8a40c7a
2 changed files with 23 additions and 5 deletions
|
|
@ -71,3 +71,19 @@ proc p2 =
|
|||
|
||||
discard repr p2
|
||||
|
||||
|
||||
#####################################################################
|
||||
# bug #15043
|
||||
|
||||
import macros
|
||||
|
||||
macro extract(): untyped =
|
||||
result = newStmtList()
|
||||
var x: seq[tuple[node: NimNode]]
|
||||
|
||||
proc test(n: NimNode) {.closure.} =
|
||||
x.add (node: n)
|
||||
|
||||
test(parseExpr("discard"))
|
||||
|
||||
extract()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue