go/types,types2: internal error when function as generic argument #52378
Labels
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?
run following code
What did you expect to see?
compile without error
What did you see instead?
./main.go:41:10: internal compiler error: assigning m.data (type *go.shape.struct { Bar string; SubState struct { X string } }_0) to parameter foo (type *StateFoo["".SubState·1])
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
Compilation finished with exit code 2
The text was updated successfully, but these errors were encountered: