You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Go: generic type parameters ([T any]) leak as a sourceless god node t #4383
_go_collect_type_refs appends the bare T/R identifiers used in a generic signature, struct field, or interface method as type references and runs them through the sourceless-stub path. Every generic function/type then collapses its T onto one bare t node — a god node. Single-letter type params are not in the analyzer's builtin-noise filter, so these hubs pollute god-node rankings. TypeScript, C#, and Java already exclude their type parameters.
Reproduction
package p
funcMap[Tany, Rcomparable](xT, ffunc(T) R) R { varrR; returnr }
typeBox[Tany] struct { vT }
Expected
T/R dropped (local bindings); genuine user types and the generic container head (Box in Box[T]) still reference.
Actual
Sourceless nodes t/r with references edges from the functions/types.
Activity
github-actions commentedon Oct 12, 2026
Thanks for opening this issue, @rajatnagda45. A maintainer will take a look soon.
If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.
To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.
safishamsi commentedon Oct 12, 2026
Fixed in v0.9.88 (
graphifyy 0.9.88on PyPI) via #4388.