golang/go

x/tools/gopls: objectpath: panic due to nil *types.Signature

Opened this issue · 1 comments

#!stacks
"sigpanic" && "(*Signature).RecvTypeParams" && "objectpath.(*finder).find:+22"

Issue created by stacks.

Possible type checker bug: the parameter of an interface method is a alias to a nil signature. Invalid code that uses interface methods and aliases have been a fertile source of bugs due to cycles and ordering subtleties. Also possibly memory corruption.

This stack olW9_w was reported by telemetry:

golang.org/x/tools/gopls@v0.20.0 go1.24.5 darwin/arm64 neovim (1)

I suspect a type checker bug here, rather than memory corruption. Without a reproducer, it may be impossible to fix.