Closed as not planned
Description
What version of Go are you using (go version
)?
$ gotip version go version devel go1.18-e50f0f372b Fri Feb 11 05:11:58 2022 +0000 darwin/arm64
What did you do?
The document for reflect.Type interface has described is comparable.
Type values are comparable, such as with the == operator, so they can be used as map keys.
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.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done