anvil icon indicating copy to clipboard operation
anvil copied to clipboard

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

Open RBusarow opened this issue 1 year ago • 1 comments

https://github.com/square/anvil/issues/750

This is a follow-up to the work from https://github.com/square/anvil/pull/833, which was reverted in https://github.com/square/anvil/pull/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 avatar Feb 26 '24 21:02 RBusarow

@RBusarow I will fix that soon

IlyaGulya avatar Feb 28 '24 07:02 IlyaGulya