fix #15043 (#16441) [backport:1.4]

* fix #15043

* Trigger build
This commit is contained in:
cooldome
2020-12-27 21:05:33 +02:00
committed by GitHub
parent e718a4a058
commit fbc8a40c7a
2 changed files with 23 additions and 5 deletions

View File

@@ -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()