handle tyUserTypeClassInst in addDeclaredLoc (#18236)
This commit is contained in:
parent
6b97889f44
commit
c64d917619
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue