Consider this example, adapted from https://github.com/golang/proposal/blob/master/design/43651-type-parameters.md#composite-types-in-constraints (note that the example is incorrect): https://gotipplay.golang.org/p/a8fHVTUpeie
The compiler reports an error: ./prog.go:14:9: p.x undefined (type *T is pointer to type parameter, not type parameter) ./prog.go:16:4: p.x undefined (type *T is pointer to type parameter, not type parameter) What is the reason why the code does not compile? Thanks Manlio -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/3f0fd87a-f8bf-4722-8e3a-feabf6a35f80n%40googlegroups.com.