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: type inference doesn't work when casting to generic type #39866
What version of Go are you using (
In the current design draft type inference only works for function calls, not for type conversions. So this is working as expected.
In order to add this feature to the design draft I'd like to see some realistic code that would use it. It strikes me as being likely to be more confusing than readable.