mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
19 lines
306 B
Kotlin
Vendored
19 lines
306 B
Kotlin
Vendored
package test
|
|
|
|
private val prop = "O"
|
|
|
|
private fun test() = "K"
|
|
|
|
inline internal fun call(p: () -> String): String = p()
|
|
|
|
inline internal fun inlineFun(): String {
|
|
return call {
|
|
object {
|
|
fun run() = prop + test()
|
|
}.run()
|
|
}
|
|
}
|
|
|
|
fun box(): String {
|
|
return inlineFun();
|
|
} |