Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/sam/wrapperInlinedFromAnotherClass.kt
T
Dmitry Petrov 3438d19c22 JVM_IR indy: use 'CLASS' mode in SAM bytecode listing tests
KT-44278 KT-26060 KT-42621
2021-02-12 16:52:31 +03:00

18 lines
485 B
Kotlin
Vendored

// KOTLIN_CONFIGURATION_FLAGS: SAM_CONVERSIONS=CLASS
class A {
fun test1a() = B().runnable1()
fun test1b() = B().runnable1()
fun test2a() = B().runnable2()
fun test2b() = B().runnable2()
fun testRunnableSamCtor1() = B().runnableSamCtor {}
fun testRunnableSamCtor2() = B().runnableSamCtor {}
}
class B {
inline fun runnable1() = Runnable {}
inline fun runnable2() = Runnable {}
inline fun runnableSamCtor(noinline s: () -> Unit ) = Runnable (s)
}