This commit is contained in:
Arne Döring 2020-03-22 19:35:55 +01:00 • committed by GitHub
commit 047d3af6da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -1623,7 +1623,7 @@ proc isTupleRecursive(t: PType, cycleDetector: var IntSet): bool =
if isTupleRecursive(t[i], cycleDetectorCopy): if isTupleRecursive(t[i], cycleDetectorCopy):
return true return true
of tyAlias, tyRef, tyPtr, tyGenericInst, tyVar, tyLent, tySink, of tyAlias, tyRef, tyPtr, tyGenericInst, tyVar, tyLent, tySink,
tyArray, tyUncheckedArray, tySequence: tyArray, tyUncheckedArray, tySequence, tyDistinct:
return isTupleRecursive(t.lastSon, cycleDetector) return isTupleRecursive(t.lastSon, cycleDetector)
else: else:
return false return false

View file

@ -35,4 +35,6 @@ type
children: ptr MyType9 children: ptr MyType9
MyType9 = tuple MyType9 = tuple
children: MyType0 children: MyType10
MyType10 = distinct seq[MyType0]