Hi!
I'm facing an issue with a KMP project that has JVM and Android targets:
• The JVM target is build for Java 17, the Android target is built for Java 1.8. in the common code
• There's an
inline function delegating to an expect/actual function.
• The expect/actual function has implementations for the JVM and for Android (separate targets, separate source sets, separate JVM targets)
So far, so good. However, when trying to call this inline function from another project's common source set (which also has discrete JVM and Android targets),
things go south: For whatever reason, the Andoid target resolves the inline function to the JVM target. Rightfully, the compiler complains that JVM 17 bytecode cannot be inlined into JVM 1-8 bytecode.
While I am pretty sure that this is a tooling bug (it would not be the first we've encountered), I'd like to get some input before reporting and double-check that its not some miswired project setup on our end.