summary refs log tree commit diff stats
path: root/tests/concepts/tinfrecursion.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/concepts/tinfrecursion.nim')
-rw-r--r--tests/concepts/tinfrecursion.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/concepts/tinfrecursion.nim b/tests/concepts/tinfrecursion.nim
new file mode 100644
index 000000000..60db410de
--- /dev/null
+++ b/tests/concepts/tinfrecursion.nim
@@ -0,0 +1,13 @@
+
+# bug #6691
+type
+  ConceptA = concept c
+
+  ConceptB = concept c
+      c.myProc(ConceptA)
+
+  Obj = object
+
+proc myProc(obj: Obj, x: ConceptA) = discard
+
+echo Obj is ConceptB