summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-02-14 02:12:07 +0100
committerAraq <rumpf_a@web.de>2014-02-14 02:12:07 +0100
commitf2216b8e3256312f827e645c4488828145b54328 (patch)
tree27bbcc132314a559d94511bf57315d6209bed148 /tests
parent896c96134f47945c497a1a9f38d3d28ca43f119a (diff)
downloadNim-f2216b8e3256312f827e645c4488828145b54328.tar.gz
fixes #833
Diffstat (limited to 'tests')
-rw-r--r--tests/ccgbugs/tcgbug.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ccgbugs/tcgbug.nim b/tests/ccgbugs/tcgbug.nim
index 417b909ae..c0037935a 100644
--- a/tests/ccgbugs/tcgbug.nim
+++ b/tests/ccgbugs/tcgbug.nim
@@ -21,3 +21,13 @@ q(a)
 
 echo "success"
 
+
+# bug #833
+
+type
+  PFuture*[T] = ref object
+    value*: T
+    finished*: bool
+    cb: proc (future: PFuture[T]) {.closure.}
+
+var k = PFuture[void]()