What version of Go are you using (go version)?
devel go1.18-c8861432b8 Sun Jan 2 14:27:43 2022 +0000
What did you do?
type X[T any] interface {
T | string
}
https://go.dev/play/p/v-8zaOs_d3r?v=gotip
What did you expect to see?
"cannot use type parameter in typeset"
What did you see instead?
"cannot embed a type parameter"
What version of Go are you using (
go version)?What did you do?
https://go.dev/play/p/v-8zaOs_d3r?v=gotip
What did you expect to see?
"cannot use type parameter in typeset"
What did you see instead?
"cannot embed a type parameter"