Files
kotlin/compiler/testData/codegen/box/classes/privateOuterFunctions.kt
Ilya Matveev a5e4e0284e Mute some box tests for native backend
This patch mutes the following test categories:
   * Tests with java dependencies (System class,
     java stdlib, jvm-oriented annotations etc).
   * Coroutines tests.
   * Reflection tests.
   * Tests with an inheritance from the standard
     collections.
2017-03-10 19:59:37 +03:00

37 lines
582 B
Kotlin
Vendored

// IGNORE_BACKEND: NATIVE
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()
}
}
}
interface Runnable {
fun run(): Unit
}
fun box() = C().foo()