I’m getting the following error in Anvil when tryi...
# squarelibraries
t
I’m getting the following error in Anvil when trying to contribute a class bound by the type
Any
.
Copy code
e: com.squareup.anvil.compiler.api.AnvilCompilationException: Back-end (JVM) Internal error: com.squareup.anvil.annotations.ContributesMultibinding contributes a binding for kotlin.Any, but doesn't extend this type.
Based on this test, Anvil seems to support what I’m looking for, but I must be overlooking something: https://github.com/square/anvil/blob/main/compiler/src/test/java/com/squareup/anvil/compiler/codegen/ContributesMultibindingGeneratorTest.kt#L325-L339. Any pointers would be appreciated. Here is the offending code:
Copy code
@ContributesMultibinding(AppScope::class, boundType = Any::class)
@JsonAdapters
class CallStrategyAdapter
r
What version are you using?
t
I’m on 2.4.2, but tried updating and also failed on 2.4.3.
r
Got it, I thought there might be a regression. Please file a bug for that. It should be supported.