We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
go tip 1.18
$ go version
Yes
go env
$ go env
package main import ( "fmt" "reflect" ) type A[T any] struct { B[int] } type B[T any] struct { } func (b B[T]) Bat() { t := new(T) fmt.Println(reflect.TypeOf(t).String()) } type Foo struct { A[string] } func main() { Foo{}.A.Bat() Foo{}.A.B.Bat() }
*int *int
*string *int
The text was updated successfully, but these errors were encountered:
Unified IR works right:
$ GOEXPERIMENT=unified go run p.go *int *int
Sorry, something went wrong.
Change https://golang.org/cl/348549 mentions this issue: cmd/compile: fix wrong instantinated type for embedded receiver
cmd/compile: fix wrong instantinated type for embedded receiver
2481f6e
No branches or pull requests
What version of Go are you using (
go version
)?go tip 1.18
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: