When I type a function that does not exist and pas...
# intellij
u
When I type a function that does not exist and pass functions to it
Copy code
ScreenBody(
   viewModel::enableClick,
   viewModel::disableClick
)
and then alt+enter create it I get this cryptic nonsense
Copy code
private fun ScreenBody(kFunction0: KFunction0<Unit>, kFunction01: KFunction0<Unit>) {
any way around it? can't it just fill in normal lambdas, like this?
Copy code
private fun ScreenBody(onEnableClick: () -> Unit, onDisableClick: () -> Unit) {
so annoying
plus1 5
s
It would probably not know to call the lambda parameters
onEnableClick
and
onDisableClick
(unless you use named parameters when calling
ScreenBody()
), but I agree that it would be nice to use normal lambda syntax instead of inserting
KFunctionX
types.
u
yea I can deal with names, but the KFunction0<Unit> junk..
c
definitely needs a youtrack issue!