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: unexpected successful compilation #41203
What version of Go are you using (
Thanks for this!
As @rsc pointed out, it is perfectly fine to write constraints that cannot be satisfied. (As an aside, your example can be satisfied: https://go2goplay.golang.org/p/VO-7h04CiAd .) This is not an issue with the prototype; it is permitted by the design draft.
Your 2nd example's constraint can also be satisfied: https://go2goplay.golang.org/p/nkhNZ1cBx-f.
Even in non-generic Go it is possible to write nonsensical code.