Files
kotlin/compiler/testData/codegen/box/topLevelPrivate/privateInInlineNested.kt
Alexander Udalov 20e36438e2 Move some tests from boxWithStdlib/ to box/
Move those tests which do not require neither stdlib nor reflect
2016-03-09 10:25:38 +03:00

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();
}