Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/golang/completion: fix the isEmptyInterface predicate
The isEmptyInterface predicate had a TODO noting that it should probably be considering the underlying type. After looking at usage, I agree that this was probably simple any oversight, but didn't matter because most uses of the empty interface were uses of any or interface{}, both of which were an interface. But with CL 580355, as the 'any' type is becoming a types.Alias, and this logic is caused inference scoring to change and gopls tests to fail. Fix isEmptyInterface to check underlying, and add a bit of commentary for the future. For golang/go#66921 Change-Id: I7ba3db1b04d83dda0372d9c39b943965f4d8c955 Reviewed-on: https://go-review.googlesource.com/c/tools/+/582335 Reviewed-by: Alan Donovan <adonovan@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
- Loading branch information