You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does this issue reproduce with the latest release?
I got this yesterday on my Macbook ARM64 with commit ef2ebbef9.
I got this result today on my Macbook AMD64 with commit 732f6fa9d5 (so just pulled latest a couple minutes ago).
What operating system and processor architecture are you using (go env)?
I can update with the output on amd64 as well if it will help.
What did you do?
I ran this in a file called main.go:
package main
type M[T any] struct {
p M[*T]
}
What did you expect to see?
Something like ... main.go:ln:pos: invalid recursive type M which is what I see when T isn't a pointer.
It's at https://go2goplay.golang.org/p/mz9YHPAtvAW, which I think is useful because the playground handles the situation sensibly and would be in line with my expectations.
### What did you see instead?
`go run <file>.go` just hangs. And trying to `go build` a package with this file hangs also.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I got this yesterday on my Macbook ARM64 with commit
ef2ebbef9
.I got this result today on my Macbook AMD64 with commit
732f6fa9d5
(so just pulled latest a couple minutes ago).What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I ran this in a file called
main.go
:What did you expect to see?
Something like ...
main.go:ln:pos: invalid recursive type M
which is what I see when T isn't a pointer.The text was updated successfully, but these errors were encountered: