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
I also got the same error. MWE of the code I was working with:
package main import "fmt" type Interface[K any] interface { Name() string } type interfaceImpl[K any] struct { name string } func (i interfaceImpl[K]) Name() string { return i.name } type Type[T any, K any] struct { interfaceImpl[K] } func main() { a := Type[int, int]{ interfaceImpl[int]{name: "hello"}, } printName(a) } func printName[T any](k Type[T, int]) { fmt.Println(k.Name()) }
Originally posted by @arvidfm in #53254 (comment)
The text was updated successfully, but these errors were encountered:
Change https://go.dev/cl/412614 mentions this issue: cmd/compile: fix assert condition in generic method call
cmd/compile: fix assert condition in generic method call
Sorry, something went wrong.
4045b1b
@gopherbot please open a backport issue to 1.18.
Backport issue(s) opened: #53274 (for 1.18).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.
696f730
Fixes golang#53406. Change-Id: If7ae39ec1042a792d82a0a2de96d168c22d8ab71 Reviewed-on: https://go-review.googlesource.com/c/go/+/412614 Reviewed-by: Keith Randall <[email protected]> Reviewed-by: Cuong Manh Le <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Alex Rakoczy <[email protected]> Auto-Submit: Alex Rakoczy <[email protected]> Reviewed-by: Keith Randall <[email protected]> Run-TryBot: Wayne Zuo <[email protected]>
No branches or pull requests
I also got the same error. MWE of the code I was working with:
Originally posted by @arvidfm in #53254 (comment)
The text was updated successfully, but these errors were encountered: