-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
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
reflect: Type interface is unimplemented comparable (generics) #51179
Comments
I find it is work fine at the my local go source code, which is failed on the go playground.
So i compiled a new one, it failed also.
|
Also CC @findleyr. Placing it in 1.18 milestone to at least investigate whether something about this needs to be done for 1.18. |
It's true that |
See discussion at #51338 for a way to fix this. |
Rolling forward to 1.20. |
Closing in favor of #56548 which attempts to address the general issue. |
What version of Go are you using (
go version
)?What did you do?
The document for reflect.Type interface has described is comparable.
However, I tried to compare with a function using generics comparable, and I get a compilation error.
What did you expect to see?
compilable
What did you see instead?
compilation error.
https://go.dev/play/p/vPcBpD86rST?v=gotip
The text was updated successfully, but these errors were encountered: