Add testcase for #5688

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

View file

@ -33,6 +33,7 @@ py
py py
px px
6 6
proc (){.closure, gcsafe, locks: 0.}
''' '''
""" """
@ -177,3 +178,19 @@ block tclosure2:
outer2() 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()