Files
kotlin-fork/compiler/testData/codegen/box/funInterface/kt45444_privateFunInterface.kt
T
2021-10-02 06:14:35 +00:00

17 lines
311 B
Kotlin
Vendored

// IGNORE_BACKEND: JVM
// IGNORE_BACKEND: WASM
// WASM_MUTE_REASON: SAM_CONVERSIONS
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