Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/go2go: compiler error after translation #39692
What version of Go are you using (
This kind of thing is a bug in the translation tool. Basically, the code passed the type checker, but the generated Go-without-generics code is somehow using the wrong type.
Although I've been working on similar bug reports, and this code now fails in a completely different way. But it's still a bug in the translation tool.
Previously we instantiated the underlying type, so we didn't need this. We stopped doing that to get the same type in the generated code, but now we need to get the right type arguments, rather than just leaving the type parameters there. Fixes #39692 Change-Id: I56ba8ff017c37219e7cb9bb6e07a4beb8c50e9dc Reviewed-on: https://go-review.googlesource.com/c/go/+/238797 Reviewed-by: Ian Lance Taylor <email@example.com>