Add testcase for #5688

This commit is contained in:
Clyybber
2020-08-08 12:44:45 +02:00
parent 38068f9778
commit 78b2012a92

View File

@@ -33,6 +33,7 @@ py
py
px
6
proc (){.closure, gcsafe, locks: 0.}
'''
"""
@@ -177,3 +178,19 @@ block tclosure2:
outer2()
# bug #5688
import typetraits
proc myDiscard[T](a: T) = discard
proc foo() =
let a = 5
let f = (proc() =
myDiscard (proc() = echo a)
)
echo name(type(f))
foo()