snowe
02/19/2019, 4:48 AMreturnFromInline { return }
inline fun returnFromInline(ret: () -> Unit) {
ret()
}
but not
returnFromInline()
inline fun returnFromInline() {
return
}
SOFe
02/19/2019, 6:27 AMreturn@outer
syntax, which still heavily depends on the caller's return type. I don't think there is anything in the Kotlin language right now that allows you to restrict a calling context's function's return type.diesieben07
02/19/2019, 7:28 AMsahil Lone
04/24/2019, 6:27 PMFunctionX