Skip to content

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

@findleyr

Description

@findleyr

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions