I have the following method in Kotlin:
inline fun foo() {
}
If I try to call this from Java like this:
m
There's no way to call Kotlin inline
functions with reified type parameters from Java because they must be transformed and inlined at the call sites (in your case, T
should be substituted with the actual type at each call site, but there's much more compiler logic for inline
functions than just this), and the Java compiler is, expectedly, completely unaware of that.