mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
20 lines
332 B
Kotlin
Vendored
20 lines
332 B
Kotlin
Vendored
// IGNORE_BACKEND: JVM_IR
|
|
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();
|
|
} |