summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ccgbugs/tmissing_ccgtrav_unique_type.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ccgbugs/tmissing_ccgtrav_unique_type.nim b/tests/ccgbugs/tmissing_ccgtrav_unique_type.nim
new file mode 100644
index 000000000..cb87eabd8
--- /dev/null
+++ b/tests/ccgbugs/tmissing_ccgtrav_unique_type.nim
@@ -0,0 +1,12 @@
+
+# bug #3794
+
+
+import options
+
+proc getRef*(): Option[int] =
+  return none(int)
+
+proc getChild*() =
+  let iter = iterator (): int {.closure.} =
+    let reference = getRef()