summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-02-01 16:56:02 +0100
committerGitHub <noreply@github.com>2021-02-01 16:56:02 +0100
commit91ace2188a243b4453412ed1e79e2efcc62d95a6 (patch)
treee18481f74284732e2bdb093f51c4ac076bafcdf5
parentde4f2604c2087cafb14b964280fdc0fd5fa847b5 (diff)
downloadNim-91ace2188a243b4453412ed1e79e2efcc62d95a6.tar.gz
fixes #16897 [backport:1.2] (#16900)
-rw-r--r--compiler/types.nim2
1 files changed, 1 insertions, 1 deletions
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