Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt
T
2018-06-28 12:26:41 +02:00

22 lines
330 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM_IR
// FILE: 1.kt
package test
inline fun String.fire(message: String? = null) {
val res = this + message!!
}
// FILE: 2.kt
// NO_CHECK_LAMBDA_INLINING
import test.*
fun box(): String {
val receiver = "receiver"
"".let {
{
receiver.fire()
}
}
return "OK"
}