Files
kotlin/compiler/testData/codegen/box/classes/privateOuterFunctions.kt
Alexander Udalov 41a416da60 Move blackBoxFile() testData to box/ directory
Delete all test methods (and empty test classes), since they'll be
auto-generated
2013-01-28 18:20:17 +04:00

32 lines
512 B
Kotlin

class C {
private fun String.ext() : String = ""
private fun f() {}
public fun foo() : String {
{
"".ext()
f()
}.invoke()
object : Runnable {
public override fun run() {
"".ext()
f()
}
}.run()
Inner().innerFun()
return "OK"
}
private inner class Inner() {
fun innerFun() {
"".ext()
f()
}
}
}
fun box() = C().foo()