summary refs log tree commit diff stats
path: root/tests/ccgbugs/tcgbug.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/tcgbug.nim')
-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]()