-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AbstractChannel is currently not parametric #28124
Comments
This seems like a good idea; also shouldn't |
That would be excellent, and it would also be great if |
The immediate change to Base (as opposed to stdlib/Distributed) is just adding the type parameter. |
Sounds good. |
The
AbstractChannel
type is not parametric; it's defined asBut should it be parametric? Will something with the
Channel
interface ever require more flexibility than would be allowed by this?:The reason why this came up is because
Channel
andRemoteChannel
do not share a common supertype belowAny
, and I'd like to create a type union for functions that accept anything with the channel interface. This is valid and catches most (all?) of the built-in cases:but trying to expand that definition to
AbstractChannel
s is not validThe text was updated successfully, but these errors were encountered: