Is it possible to prevent the compiler from inlini...
# gradle
m
Is it possible to prevent the compiler from inlining methods defined in a specific package or module (even if they’re marked
inline
)? The compiler option
-Xno-inline
prevents inlining also of stdlib functions which causes plenty of errors:
Copy code
java.lang.IllegalAccessError: tried to access method kotlin.collections.MapsKt__MapsKt.mutableMapOf()Ljava/util/Map; from class tests.TestData$Companion
        at tests.TestData$Companion.ofEncodable(TestData.kt:74)
        at tests.NumberDataKt.<clinit>(numberData.kt:61)
        …
i
No there is no such option, however you can call an inline method from Java and it won't be inlined.
Also I'm not sure how this question relates to Gradle Kotlin DSL which is being discussed in this channel.
m
argh, wrong channel, sorry 😮
Thanks for the info. Would have to write my tests in Java in order to get full coverage then 😕