Files
kotlin/compiler/testData/codegen/boxWithStdlib/topLevelPrivate/privateInInlineNested.kt
2015-10-18 17:53:28 +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();
}