concepts: fixes the stack overflow that happens for #6691
This commit is contained in:
parent
4e4d466d06
commit
9e4e1949e8
2 changed files with 15 additions and 1 deletions
13
tests/concepts/tinfrecursion.nim
Normal file
13
tests/concepts/tinfrecursion.nim
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue