Change information
Commit message:
gopls/internal/golang/stubmethods: fix internal error (missing type)
EnclosingSignature can return nil when there are duplicate
function declarations of the same name. Previously this triggered
a bug.Report (in fact two, in the past) and an internal error.
This change documents and tests it and downgrades it to an
expected error.
Fixes golang/go#70666
Change-Id: I809d55fe5af6d8a0d87560da29cc8a2471637e83
Files:
- M gopls/internal/golang/stubmethods/stubmethods.go
- A gopls/internal/test/marker/testdata/quickfix/stubmethods/issue70666.txt
- M gopls/internal/util/typesutil/typesutil.go
Change size: M
Delta: 3 files changed, 50 insertions(+), 13 deletions(-)
Branch: refs/heads/master