summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-23 08:47:22 +0100
committerAraq <rumpf_a@web.de>2014-01-23 08:47:22 +0100
commitd01ff8994b8805a6558c87f1f58c789e42c93694 (patch)
tree14976ba53ab1c02a227fb2ee1fb119d2616a1f8b /tests
parent3f87326247b142df4eff99a92c6529b33bb79b81 (diff)
downloadNim-d01ff8994b8805a6558c87f1f58c789e42c93694.tar.gz
closure iterators work
Diffstat (limited to 'tests')
-rw-r--r--tests/closure/tnamedparamanonproc.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/closure/tnamedparamanonproc.nim b/tests/closure/tnamedparamanonproc.nim
index 272b84e91..94e32894f 100644
--- a/tests/closure/tnamedparamanonproc.nim
+++ b/tests/closure/tnamedparamanonproc.nim
@@ -4,8 +4,8 @@ type
   TButtonClicked = proc(button: PButton) {.nimcall.}
 
 proc newButton*(onClick: TButtonClicked) =
-  nil
-  
+  discard
+
 proc main() =
   newButton(onClick = proc(b: PButton) =
     var requestomat = 12