Norbi
06/05/2023, 8:38 PMsingle {}
declarations with the same bound type will result in an override, and when will be both available for getAll()
? Thanks.Norbi
06/05/2023, 8:41 PMsingle(createdAtStart = true) {
Runnable {
println("running#1")
}.also {
it.run()
}
}
single(createdAtStart = true) {
Runnable {
println("running#2")
}.also {
it.run()
}
}
results in printing only running#1
although I apply allowOverride(false)
to the container.
I expected the container either to fail or no overriding to happen...Martin Sloup
06/07/2023, 11:33 AMNorbi
06/13/2023, 8:42 AMRunnable
), so they should override, shouldn't they?arnaud.giuliani
06/16/2023, 1:51 PM