What version of Go are you using (go version)?
$ go version
go version go1.18rc1 linux/amd64
What did you do?
type foo[T *string,] struct{x T} // okay
type bar[T *string|bool,] struct{x T} // syntax error: unexpected comma; expecting ]
type tik[T *string|bool, X int] struct{x T} // syntax error: unexpected comma; expecting ]
What did you expect to see?
compiles okay
What did you see instead?
fails to compile
What version of Go are you using (
go version)?What did you do?
What did you expect to see?
compiles okay
What did you see instead?
fails to compile