mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
This makes the behavior of JVM and JVM_IR the same without having to deal with PSI nodes.
12 lines
361 B
Kotlin
Vendored
12 lines
361 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.
|
|
// 2 LINENUMBER 65100
|