From d01ff8994b8805a6558c87f1f58c789e42c93694 Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 23 Jan 2014 08:47:22 +0100 Subject: closure iterators work --- tests/closure/tnamedparamanonproc.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/closure') 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 -- cgit 1.4.1-2-gfad0 95d09981fbeb01d85b12f23946c3e7'>this commit This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
path: root/build_all.bat
blob: ef4a5f6a4e786e384d9cd9390aa0e8b1f50d436e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29