Compiling the following code:
package main
type T[P any] int
const C T[int] = 3
func main() {
}
Yields the following linker error:
go.constinfo.main: relocation target go.info.main.T[int] not defined
https://go.dev/play/p/sR5foIWLFEg?v=gotip
This looks like a valid program to me, so I think this is a bug (at the very least, the error message could be improved).
CC @danscales @randall77 @mdempsky @griesemer