diff options
author | Araq <rumpf_a@web.de> | 2014-01-23 08:47:22 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-01-23 08:47:22 +0100 |
commit | d01ff8994b8805a6558c87f1f58c789e42c93694 (patch) | |
tree | 14976ba53ab1c02a227fb2ee1fb119d2616a1f8b /tests | |
parent | 3f87326247b142df4eff99a92c6529b33bb79b81 (diff) | |
download | Nim-d01ff8994b8805a6558c87f1f58c789e42c93694.tar.gz |
closure iterators work
Diffstat (limited to 'tests')
-rw-r--r-- | tests/closure/tnamedparamanonproc.nim | 4 |
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 |