summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--compiler/astmsgs.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/astmsgs.nim b/compiler/astmsgs.nim
index 5be8dc38f..924f0ddea 100644
--- a/compiler/astmsgs.nim
+++ b/compiler/astmsgs.nim
@@ -13,7 +13,7 @@ proc addDeclaredLoc*(result: var string, conf: ConfigRef; typ: PType) =
   # xxx figure out how to resolve `tyGenericParam`, e.g. for
   # proc fn[T](a: T, b: T) = discard
   # fn(1.1, "a")
-  let typ = typ.skipTypes(abstractInst + {tyStatic} - {tyRange})
+  let typ = typ.skipTypes(abstractInst + {tyStatic, tyUserTypeClassInst} - {tyRange})
   result.add " [$1" % typ.kind.toHumanStr
   if typ.sym != nil:
     result.add " declared in " & toFileLineCol(conf, typ.sym.info)