I recently switched my project from Kotlin 1.0.6 to 1.1.1 and the compiler is now failing to inline almost every inline function I have. This is the error I get:
Same result either way. Not sure what to try here, any suggestions? Once again I want to make clear this exact same code had no issue compiling before 1.1, edit aside from the version of Kotlin stdlib being used.
OK I forgot to try with and without the jre8 version of Kotlin stdlib. Turns out this is what’s causing the issue as one might assume from the compiler error output. Can someone explain what’s going on here? Can I really not use inline functions when targeting Java 8?
Yes the problem is coming from usage of the method in tests, thanks. I don’t know how to resolve it though, do I testCompile "org.jetbrains.kotlin:kotlin-test-jre8:$kotlin_version"
or something similair? Sorry I’m not very good with Gradle.