locke
06/01/2018, 4:14 PMtarget: StepperCallback?.() -> Boolean
which is then called as target.invoke(it.second)
.
I am concerned that that invoke
call isn't returning a Boolean?
but rather Boolean
. If the receiver is nullable, then target.invoke(null)
is a valid expression, but what does it return? Intuitively to me, it should return a null
of type Boolean?
, but Android Studio is telling me that the return type of target.invoke()
is a Boolean
.