mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-30 11:13:57 +00:00
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user