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:
e: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'method' into
Then I get something really strange about not being able to inline bytecode above version 50:
Cause: Not generated
Cause: Cannot inline bytecode of class which has version 52. This compiler can only inline Java 1.6 bytecode (version 50)
In my build file I have tried with and without:
jvmTarget = "1.8"
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.