-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/lsp/source: stubmethods: fix out-of-bounds index
The attatchedd test case spuriously triggered stubmethods (the "cannot convert" error is about something else) in a function whose return an functype arities were mismatched. The new behavior is "nothing happens", no code actions are offered, nothing is logged, and no suggested fix is applied, or fails to apply. (Along the way I implemented suggestedfixerr before I realized it would not be useful; but it may be useful later.) Fixes golang/go#64087 Change-Id: I27e825248576f9bda2229c652487fdbec9a25bc2 Reviewed-on: https://go-review.googlesource.com/c/tools/+/543018 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Alan Donovan <adonovan@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
- Loading branch information
Showing
3 changed files
with
93 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters