koin treat it as same type and failed with this exception:
Copy code
org.koin.core.error.DefinitionOverrideException: Definition '[Factory:'kotlin.jvm.functions.Function0']' try to override existing definition. Please use override option to fix it
are there any workarounds?
f
Florian Eula
11/30/2020, 12:27 PM
No workarounds except named qualifiers, yes. Kotlin lambdas get converted to Function0<T>, Function1<T, Y>, etc. and all these get hit by type erasure.