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: embedded type lists type checking seems incorrect #40961
What version of Go are you using (
I believe this is working as intended. Embedding two interfaces with type lists gives you the intersection of the type lists, which in this example is the empty set. See https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md#type-lists-in-embedded-constraints .