more bugfixes for closures

This commit is contained in:
Araq 2012-08-14 07:53:16 +02:00
commit 5e570bae47
3 changed files with 20 additions and 5 deletions

View file

@ -0,0 +1,14 @@
discard """
line: 10
errormsg: "invalid capture: 'A'"
"""
proc outer() =
var A: int
proc ugh[T](x: T) {.cdecl.} =
echo "ugha", A, x
ugh[int](12)
outer()