further progress on closure iterators; tforum still failing

This commit is contained in:
Andreas Rumpf 2016-01-03 21:16:07 +01:00
commit 813f98fb34
3 changed files with 34 additions and 18 deletions

View file

@ -1,9 +1,9 @@
discard """
line: 12
errormsg: "type mismatch: got (proc (x: int){.closure, gcsafe, locks: 0.})"
errormsg: "type mismatch: got (proc (x: int){.gcsafe, locks: 0.})"
"""
proc ugh[T](x: T) {.closure.} =
proc ugh[T](x: T) {.nimcall.} =
echo "ugha"