JVM_IR indy-SAM conversions: prohibit in crossinline lambdas
KT-44278 KT-26060 KT-42621
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// JVM_TARGET: 1.8
|
||||
// SAM_CONVERSIONS: INDY
|
||||
fun interface IFoo {
|
||||
fun foo(): String
|
||||
}
|
||||
|
||||
fun foo(iFoo: IFoo) = iFoo.foo()
|
||||
|
||||
open class C1 {
|
||||
open fun test() = foo { "O" }
|
||||
}
|
||||
|
||||
class C2 : C1() {
|
||||
override fun test() = foo { "K" }
|
||||
}
|
||||
|
||||
fun box() =
|
||||
C1().test() + C2().test()
|
||||
Reference in New Issue
Block a user