Hello, just setup koin and it's requiring me to pa...
# koin
u
Hello, just setup koin and it's requiring me to pass class of dependency inside inject. I was under the impression this was doable simply how I have it. For some reason its using inject from KotlinJavaComponent
Copy code
class A {
    val b by inject<B>() // How I expected it to be done (based off codes samples I've seen)
    val b by inject<B>(B::class.java) // Requiring me to do it this way
}
d
wrong import, man 🙂
u
@deviant Well yeah I figured but its the only import for inject that I have. I have 
io.insert-koin:koin-core
 and 
io.insert-koin:koin-core-ext
 as my dependencies. This is solely a JVM kotlin project. I could make a top level function that takes reified type but if there's a proper way to do it, rather do it that way lol