You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My code that compiled under go 1.20 with generics fails to compile with go 1.21.
Error message:
../../csvctd/ctdcsv.go:324:47: type func(a model.HumanCompanyRole, b model.HumanCompanyRole) bool of func(a, b model.HumanCompanyRole) bool {…} does not match inferred type func(a model.HumanCompanyRole, b model.HumanCompanyRole) int for func(a E, b E) int
What version of Go are you using (
go version
)?1.21.0
Does this issue reproduce with the latest release?
Yes, it was introduced with 1.21.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
My code that compiled under go 1.20 with generics fails to compile with go 1.21.
Error message:
What did you expect to see?
I expected backward compatibility.
What did you see instead?
Compile errors.
The text was updated successfully, but these errors were encountered: