-
Notifications
You must be signed in to change notification settings - Fork 94
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
Make TypedResource covariant in A #288
Comments
What is the use-case? On Wed, Oct 5, 2016 at 8:42 AM iphydf [email protected] wrote:
|
The use case is no longer there. I used to pass TypedResource around, but in my case I could actually just pass the View around. In general, what is the harm in adding covariance? |
I'd rather have a compelling reason to add covariance rather than vice versa |
I think add " |
Just like one can implicitly convert a
ViewGroup
to aView
, we should be able to pass aTypedResource[ViewGroup]
asTypedResource[View]
.Workaround:
The text was updated successfully, but these errors were encountered: