We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func f[P int | float64]() { m := map[P]int{0: 1, 0.0: 2} fmt.Println(m) }
should report a duplicate key: both 0 and 0.0 will be mapped to the same entry at run time
cc: findleyr
The text was updated successfully, but these errors were encountered:
CC @findleyr
Sorry, something went wrong.
Change https://go.dev/cl/406555 mentions this issue: types2: detect dupl. map keys in comp. literals with generic key type
types2: detect dupl. map keys in comp. literals with generic key type
2138124
No branches or pull requests
should report a duplicate key: both 0 and 0.0 will be mapped to the same entry at run time
cc: findleyr
The text was updated successfully, but these errors were encountered: