This commit is contained in:
ringabout
2026-02-20 18:44:50 +08:00
parent 630441a88e
commit 3b194821d7

View File

@@ -2049,6 +2049,7 @@ proc semTypeIdent(c: PContext, n: PNode): PSym =
# proc signature for example
if c.inGenericInst > 0:
let bound = result.typ.elementType.sym
# the symbol may still point to the uninstantiated generic body type
if bound != nil and bound.typ == result.typ.elementType:
return bound
return result