x/exp/apidiff: has a missing case in check whether a struct implements a interface #55963
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?What did you do?
First, I create two packages named old and new in different folders, and create a file in each package.
The file content is here.
And I use apidiff to diff these two packages
What did you expect to see?
What did you see instead?
The problem I found
Problem location
This code can only check whether S implements Iface, but cannot check whether *S implments Iface, which is the reason why the results I get are not as expected.
Whether this code should be changed to this?
The text was updated successfully, but these errors were encountered: