// TARGET_BACKEND: JVM // IGNORE_BACKEND: JVM // JVM_TARGET: 1.8 // SAM_CONVERSIONS: INDY // CHECK_BYTECODE_TEXT // JVM_IR_TEMPLATES // 0 java/lang/invoke/LambdaMetafactory // 1 class MixPrimitiveAndBoxedKt\$box\$f0\$1 // 1 class MixPrimitiveAndBoxedKt\$box\$f1\$1 fun interface IFooT { fun foo(x: T): T } fun interface IFooInt { fun foo(x: Int): Int } fun interface IFooMixed0 : IFooInt, IFooT fun interface IFooMixed1 : IFooInt, IFooT { override fun foo(x: Int): Int } fun box(): String { val f0 = IFooMixed0 { it * 2 } if (f0.foo(21) != 42) return "Failed: f0.foo(21)=${f0.foo(21)}" val f1 = IFooMixed1 { it * 2 } if (f1.foo(21) != 42) return "Failed: f1.foo(21)=${f1.foo(21)}" return "OK" }