ok. having following module declaration produces such error: ``` data class One(val item: String...
t
ok. having following module declaration produces such error:
Copy code
data class One(val item: String)
    data class Two(val one: One)
    val testModule = module {
        scope("TEST_SCOPE") {
            scoped { One("zzz") }
            scoped { Two(get()) }
        }
    }
a
@tapchicoma check beta-3
t
checking 🙂
a
👍
t
same error
a
forgot the `override=true`when prosing to declare things
Copy code
fun KoinTest.declare(moduleDeclaration: ModuleDeclaration) {
    val module = module(override = true, moduleDeclaration = moduleDeclaration)
    GlobalContext.get().modules(module)
}
t
mm, it is not related to
declare { .. }
but the use case in the start of this thread
koinApplication { modules(listOf(testModule)) }.checkModules()
a
ho yeah ... hum
raise a bug
have to deal with that
t
a
fixed 👍
t
when it will be released? 🙂
a
today ^^
t
nice 👍
hmm, updated to
beta-4
, but still have the same problem 🤔
a
😕
t
sorry, forgot to run Gradle sync 😞
a
😛
and your module is not well written should use the
named
qualifier function now
and not need to use listOf in
modules
section of your startKoin
t
yeah, I've updated to it
a
👍
t
passed 🎉
a
wooo 🎉