x/tools/gopls: Crash when an additional generic parameter is given into a generic function argument #51240
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
gopls version
go env
What did you do?
So basically I did a typo and gave two generic parameter to a type instead of one and got that crash,
I managed to reduce it all to that example
What did you expect to see?
I would expect to see an error on the function call in the main since the second parameter
Gen[int, int]
should beGen[int]
.The two following variants do not crash
gopls
so it seems to be the combination ofMethod(t T)
andGen[int, int]
causing the crash.What did you see instead?
gopls
completely crashes.Editor and settings
VSCode
Logs
The text was updated successfully, but these errors were encountered: