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
commit fbc8a40c7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()