We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This piece of code:
@ContributesMultibinding(ActivityInjection::class, boundType = Any::class) class TestViewModel @Inject constructor() : SimpleStackViewModel() { ... }
Will throw an error:
TestViewModel contributes a binding for kotlin.Any, but doesn't extend this type.
Obviously, this class DOES extend Any.
This worked in Anvil 2.3.4 but it's now broken in 2.4.1.
Setting bound type to the SimpleStackViewModel works, so it appears just using Any as a boundType is an issue.
SimpleStackViewModel
Any
The text was updated successfully, but these errors were encountered:
Support contributing types with Any as boundType.
boundType
39fefe9
Fixes #619
Successfully merging a pull request may close this issue.
This piece of code:
Will throw an error:
TestViewModel contributes a binding for kotlin.Any, but doesn't extend this type.
Obviously, this class DOES extend Any.
This worked in Anvil 2.3.4 but it's now broken in 2.4.1.
Setting bound type to the
SimpleStackViewModel
works, so it appears just usingAny
as a boundType is an issue.The text was updated successfully, but these errors were encountered: