diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-06-10 23:36:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-11 08:36:06 +0200 |
commit | c64d9176190b3b691391f1645873dd4ca5b09933 (patch) | |
tree | 8a154a3e97b992cff4b10e918c02782b51f1f9de | |
parent | 6b97889f44d06f6649b6547a4ffdb18b94d6e578 (diff) | |
download | Nim-c64d9176190b3b691391f1645873dd4ca5b09933.tar.gz |
handle tyUserTypeClassInst in addDeclaredLoc (#18236)
-rw-r--r-- | compiler/astmsgs.nim | 2 |
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) |