Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/types: mismatching 'indirect' results from NewMethodSet and LookupFieldOrMethod for interface methods #51592

Open
findleyr opened this issue Mar 10, 2022 · 0 comments
Labels
NeedsInvestigation
Milestone

Comments

@findleyr
Copy link
Contributor

@findleyr findleyr commented Mar 10, 2022

For T below, we get different results for whether or not m is indirect when using the NewMethodSet vs LookupFieldOrMethod APIs:

type T interface{ m() }

https://go.dev/play/p/yvswbEovSem

Unless I'm misunderstanding, these APIs should agree.

CC @griesemer

@findleyr findleyr added the NeedsInvestigation label Mar 10, 2022
@findleyr findleyr added this to the Go1.19 milestone Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation
Projects
None yet
Development

No branches or pull requests

1 participant