diff options
Diffstat (limited to 'tests/accept/run/tclosure.nim')
-rwxr-xr-x | tests/accept/run/tclosure.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/accept/run/tclosure.nim b/tests/accept/run/tclosure.nim index 761e9a8f3..28a51e1ac 100755 --- a/tests/accept/run/tclosure.nim +++ b/tests/accept/run/tclosure.nim @@ -1,3 +1,7 @@ +discard """ + file: "tclosure.nim" + output: "2 4 6 8 10" +""" # Test the closure implementation proc map(n: var openarray[int], fn: proc (x: int): int {.closure}) = @@ -24,3 +28,5 @@ for x in items(myData): #OUT 2 4 6 8 10 + + |