mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
@@ -1623,7 +1623,7 @@ proc isTupleRecursive(t: PType, cycleDetector: var IntSet): bool =
|
||||
if isTupleRecursive(t[i], cycleDetectorCopy):
|
||||
return true
|
||||
of tyAlias, tyRef, tyPtr, tyGenericInst, tyVar, tyLent, tySink,
|
||||
tyArray, tyUncheckedArray, tySequence:
|
||||
tyArray, tyUncheckedArray, tySequence, tyDistinct:
|
||||
return isTupleRecursive(t.lastSon, cycleDetector)
|
||||
else:
|
||||
return false
|
||||
|
||||
@@ -35,4 +35,6 @@ type
|
||||
children: ptr MyType9
|
||||
|
||||
MyType9 = tuple
|
||||
children: MyType0
|
||||
children: MyType10
|
||||
|
||||
MyType10 = distinct seq[MyType0]
|
||||
|
||||
Reference in New Issue
Block a user