x/tools/gopls: *invalid type
in test
#38231
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.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What did you do?
gopls doesn't seem to be able to recognize the
*Certificate
type ofserialiseAndParse
in this test: https://github.com/golang/go/blob/master/src/crypto/x509/x509_test.go#L1632. This applies to both the param and the return type.You should be able to reproduce this by opening that file in VSCode and hovering over the function.
This also has the unfortunate side effect that auto-completion in other functions that use
serialiseAndParse
don't work, since the type is invalid.What did you expect to see?
func serialiseAndParse(t *testing.T, template *Certificate) *Certificate
What did you see instead?
func serialiseAndParse(t *testing.T, template *invalid type) *invalid type
Build info
Go info
LMK if you need gopls logs and I can send them over.
The text was updated successfully, but these errors were encountered: