Verify inline functions with reified and crossinline params
kristiyanP opened this issue · 1 comments
kristiyanP commented
Is it possible to verify a function like this?
inline fun <reified T> Socket.emitTyped(event: String,
objectToEmit: Any?,
crossinline success: (response: T) -> Unit,
crossinline error: (reason: String) -> Unit)
oleksiyp commented
@kristiyanP, unfortunately, it is not possible as no method with bytecode is produced. I heard this question already few times. It would require a totally different approach to solve. For example writing an annotation processor. I am thinking about it, as this can probably make it possible to run on Android devices.