x/tools/gopls: incorrect literal completion for identical struct #46113
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
At
<>
, "bar{}" is the top candidate. I think gopls sees that bar is convertible to foo so it thinks "bar{}" is a good candidate. The conversion (i.e. "foo(bar{})") is not present in the candidate because the literal candidate code doesn't support converting types. Anyway, gopls shouldn't offer literal candidates that require conversion./cc @psanford
The text was updated successfully, but these errors were encountered: