JVM_IR: use indy SAM conversions in jvmTarget 1.8+, fix bridges
KT-44278 KT-26060 KT-42621
This commit is contained in:
@@ -209,11 +209,12 @@ class GenerationState private constructor(
|
||||
|
||||
val samConversionsScheme = run {
|
||||
val fromConfig = configuration.get(JVMConfigurationKeys.SAM_CONVERSIONS)
|
||||
?: JvmClosureGenerationScheme.DEFAULT
|
||||
if (target >= fromConfig.minJvmTarget)
|
||||
if (fromConfig != null && target >= fromConfig.minJvmTarget)
|
||||
fromConfig
|
||||
else if (target < JvmTarget.JVM_1_8)
|
||||
JvmClosureGenerationScheme.CLASS
|
||||
else
|
||||
JvmClosureGenerationScheme.DEFAULT
|
||||
JvmClosureGenerationScheme.INDY
|
||||
}
|
||||
|
||||
val lambdasScheme = run {
|
||||
|
||||
Reference in New Issue
Block a user