somewhat working closures
This commit is contained in:
parent
98458a3076
commit
f191059e56
8 changed files with 95 additions and 33 deletions
7
tests/reject/tinvalidclosure.nim
Normal file
7
tests/reject/tinvalidclosure.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
line: 6
|
||||
errormsg: "'ugh' cannot have 'closure' calling convention"
|
||||
"""
|
||||
|
||||
proc ugh[T](x: T) {.closure.} =
|
||||
echo "ugha"
|
||||
Loading…
Add table
Add a link
Reference in a new issue