Multibinds and kotlinx.collections.immutable? #1219
-
|
Is there a way to use @DependencyGraph(AppScope::class)
interface AppGraph {
@Multibinds
val activityProviders: ImmutableMap<KClass<out Activity>, Provider<Activity>>
}This throws an error saying |
Beta Was this translation helpful? Give feedback.
Answered by
ZacSweers
Oct 17, 2025
Replies: 1 comment
-
|
Not at the moment. The types it returns are truly immutable for what it's worth (they use map builders under the hood, see |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ZacSweers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not at the moment. The types it returns are truly immutable for what it's worth (they use map builders under the hood, see
MetroCollections.toUnmodifiableMap().