From 91ace2188a243b4453412ed1e79e2efcc62d95a6 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 1 Feb 2021 16:56:02 +0100 Subject: fixes #16897 [backport:1.2] (#16900) --- compiler/types.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/types.nim b/compiler/types.nim index bcd472d06..10ff1d09d 100644 --- a/compiler/types.nim +++ b/compiler/types.nim @@ -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 -- cgit 1.4.1-2-gfad0