cmd/compile: cannot use generic type without instantiation #61948
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I expected that I don't need infer type here after #59338 and #58650 be implemented.
https://go.dev/play/p/EFLOb5SmpYe
What did you expect to see?
Compiling succeed. And it would print out value 3 on screen.
What did you see instead?
cannot use generic type FnArg2 without instantiation
The text was updated successfully, but these errors were encountered: