fixes #16897 [backport:1.2] (#16900)

(cherry picked from commit 91ace2188a)
This commit is contained in:
Andreas Rumpf
2021-02-01 16:56:02 +01:00
committed by narimiran
parent 93ee832d3c
commit 4da6577c97

View File

@@ -73,7 +73,7 @@ const
tyInferred, tySink, tyLent, tyOwned}
# typedescX is used if we're sure tyTypeDesc should be included (or skipped)
typedescPtrs* = abstractPtrs + {tyTypeDesc}
typedescInst* = abstractInst + {tyTypeDesc, tyOwned}
typedescInst* = abstractInst + {tyTypeDesc, tyOwned, tyUserTypeClass}
proc invalidGenericInst*(f: PType): bool =
result = f.kind == tyGenericInst and lastSon(f) == nil