<https://github.com/InsertKoinIO/koin/issues/771>
# koin-contributors
k
@arnaud.giuliani, I haven’t understand about what default parameters you talk
a
Hey @Kirill Rozov here is an eaxmple of checkModules with default parameters injection: https://github.com/InsertKoinIO/koin/blob/master/koin-projects/koin-test/src/test/kotlin/org/koin/test/CheckModulesTest.kt#L109
k
But
SavedStateHandle
argument must be available for injection via
stateViewModel
If I remove
SavedStateHandle
from the arguments everything will work fine
a
yes, then to check it with checkModules we need to provide at least a default one
k
I think it will be better that
SavedStateHandle
for
viewModel{ }
declaration will work withoud addition parameter
Because sample from the issues is valid code in runtime
But
checkModules
fails
a
I see
k
Is it normal?
a
as we are using param injection here ... yes
but then, it’s not super great 😕