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.
Type switch with multiple cases loses concrete type #41740
What version of Go are you using (
This is intentional and written in the language spec.
Go doesn't really have a way of unioning two types, so that's what we have to do.
Closing. Any change here would have to go through the proposal process.