mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
This makes the behavior of JVM and JVM_IR the same without having to deal with PSI nodes.
16 lines
385 B
Kotlin
Vendored
16 lines
385 B
Kotlin
Vendored
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
|
@kotlin.internal.InlineOnly
|
|
inline fun <T, R> T.myLet(block: (T) -> R) = block(this)
|
|
|
|
fun box(): String {
|
|
val k = "".myLet {
|
|
it + "K"
|
|
}
|
|
return "O".myLet(fun (it: String): String {
|
|
return it + k
|
|
})
|
|
}
|
|
|
|
// See KT-23064 for the problem and InlineOnlySmapSkipper for an explanation.
|
|
// 0 LINENUMBER 65100
|