Files
kotlin-fork/compiler/testData/codegen/boxInline/anonymousObject/kt19723.kt
T
2018-08-09 14:22:50 +03:00

21 lines
304 B
Kotlin
Vendored

// 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"
}