Files
kotlin-fork/compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt
T
2021-10-08 07:24:41 +03:00

15 lines
250 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM
private fun interface Listener {
fun onChanged(): String
}
private class Foo {
private val listener = Listener { "OK" }
val result = listener.onChanged()
}
private val foo = Foo()
fun box(): String = foo.result