Files
kotlin-fork/compiler/testData/codegen/box/syntheticAccessors/inline.kt
T
2019-11-19 11:00:09 +03:00

17 lines
398 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
class A {
fun foo() = o_plus_f_plus_k {""}
companion object {
private val o = "O"
private val k = "K"
private inline fun o_plus_f1_plus_f2(f1: () -> String, f2: () -> String) = o + f1() + f2()
private inline fun o_plus_f_plus_k(f: () -> String) = o_plus_f1_plus_f2(f) { k }
}
}
fun box(): String {
return A().foo()
}