There is a kotlin file in a project dependency jar (called, for example, KotlinClass
) with an inline function
package io.pack
inline fun <T> every(){
///does stuff
}
If I import it into a Java class as a static:
import static io.pack.KotlinClass.every;
The import is recognised.
If I import it into a Kotlin class:
import io.pack.every
or (this ought not to work anyway, but tried for completeness) as
import io.pack.KotlinClass.every
It is not recognised.
(Note: If I create my own Kotlin file with an inline function, then that can be imported into a Kotlin class with no problem. The problem is when importing from a specific project dependency.)
What might be stopping the import of this function into a kotlin class?