Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/twoCapturedReceivers/twoExtensionReceivers.kt
T
Steven Schäfer efb938a7c8 (Un)mute tests
2019-07-31 11:18:44 +02:00

25 lines
451 B
Kotlin
Vendored

// FILE: 1.kt
package test
fun Person.sayName() = doSayName { name }
class Person(val name: String)
inline fun Person.doSayName(crossinline call: () -> String): String {
return companyName { parsonName { call() } }
}
inline fun Person.parsonName(call: () -> String) = call()
fun Person.companyName(call: () -> String) = call()
// FILE: 2.kt
//NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
return Person("OK").sayName()
}