-
Notifications
You must be signed in to change notification settings - Fork 17.4k
New issue
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
cmd/compile: internal compiler error: weird Sym #47896
Comments
what is in github.com/1995parham/linkedlist/pkg/node |
I share it here. package node
type Node[T any] struct {
Data T
Next *Node[T]
}
func New[T any](data T) *Node[T] {
return &Node[T]{
Data: data,
Next: nil,
}
} |
Another instance of the error. https://go2goplay.golang.org/p/BpN_3KWb98g
|
running |
Yes, it causes the success compile. can you please share any document about the unified feature? |
Change https://golang.org/cl/344609 mentions this issue: |
What version of Go are you using (
go version
)?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?
I have written the following generic code which is related to a linked list.
and the following code as a test.
What did you expect to see?
I expect the code passes the tests without issues.
What did you see instead?
The text was updated successfully, but these errors were encountered: