Skip to content

x/tools/gopls: can't jump-to-definition on embedded type alias #42254

@findleyr

Description

@findleyr

Setup:

type T = struct{}

type S struct {
  T
}

var x T

Jump to definition works on the T from var x T, but not on the T embedded in S. I'm sure that this is due to the way go/types handles type aliases, but we should work around this in the syntax layer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions