summary refs log tree commit diff stats
path: root/tests/run/uclosures.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/uclosures.nim')
-rw-r--r--tests/run/uclosures.nim11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/run/uclosures.nim b/tests/run/uclosures.nim
deleted file mode 100644
index d54b88285..000000000
--- a/tests/run/uclosures.nim
+++ /dev/null
@@ -1,11 +0,0 @@
-import unittest
-
-test "loop variables are captured by copy":
-  var funcs: seq[proc (): int {.closure.}] = @[]
-  
-  for i in 0..10:
-    funcs.add do -> int: return i * i
-
-  check funcs[0]() == 0
-  check funcs[3]() == 9
-