#!stacks
"inlineAllCalls:+120" && "bug.Errorf"

Issue created by stacks.


        // Sanity check.
        if obj := refpkg.TypesInfo().ObjectOf(name); obj == nil ||
            obj.Name() != origDecl.Name.Name ||
            obj.Pkg() == nil ||
            obj.Pkg().Path() != string(pkg.Metadata().PkgPath) {

            return nil, bug.Errorf("cannot inline: corrupted reference %v", ref)
        }

This stack e_6wqw was reported by telemetry:

golang.org/x/tools/gopls@v0.18.1 go1.24.3 darwin/arm64 vscode (1)

Comment From: gabyhelp

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)