x/tools/go/analysis/passes/shadow: unexpected type compatibility failure #62519
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No, the latest go1.20/21/tip works fine, go1.18/19 is broken (didn't check older releases).
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go binary set to the latest go1.19.13
% go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow@v0.13.0
% cd <go1.19 root>/src/crypto
% go vet -vettool=[path to shadow] $(go list ./...)
What did you expect to see?
No error, or just shadow warnings.
What did you see instead?
A couple of type-checking errors, bitsecting points to the following CL that introduced the behavior change.
type-checking errors:
The text was updated successfully, but these errors were encountered: