Suppose I have a Kotlin 1.1 typealias
for a Kotlin function type like this
typealias Consumer<T> = (T) -> Unit
I can access this from Java as
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
Function1<? super T, Unit> action = ...
Is it somehow possible to access the Kotlin Function1
interface from Java under its Kotlin typealias name (i.e., Consumer
)?