somewhat working closures

This commit is contained in:
Araq 2012-06-19 22:37:00 +02:00
commit f191059e56
8 changed files with 95 additions and 33 deletions

View file

@ -0,0 +1,7 @@
discard """
line: 6
errormsg: "'ugh' cannot have 'closure' calling convention"
"""
proc ugh[T](x: T) {.closure.} =
echo "ugha"