Skip to content
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

Binding module validation should check type parameters when determining if a bound type is valid #888

Open
RBusarow opened this issue Feb 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@RBusarow
Copy link
Collaborator

#750

This is a follow-up to the work from #833, which was reverted in #887.

For a binding like:

@Binds
fun bind(str: Provider<String>): Provider<CharSequence>

Anvil should check the variance of Provider, see that it's an out, and allow for this binding.

@RBusarow RBusarow added the bug Something isn't working label Feb 26, 2024
@IlyaGulya
Copy link
Contributor

@RBusarow I will fix that soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants