ok. having following module declaration produces s...
# koin
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 πŸŽ‰