Closed as not planned
Description
Indeed:
func P[K comparable](d K) {
fmt.Println(d)
}
func main() {
d := reflect.TypeOf(int64(0))
P(d)
}
I believe the above should work per the:
Type values are comparable, such as with the == operator, so they can be used as map keys. Two Type values are equal if they represent identical types.