proposal: spec: sum types based on general interfaces · Issue #57644 · golang/go
This is a speculative issue based on the way that type parameter constraints are implemented. This is a discussion of a possible future language change, not one that will be adopted in the near fut...
GitHub