Files
kotlin-fork/compiler/testData/diagnostics/tests/funInterface/funInterfaceConversionOnReceiver.fir.kt
T
2021-08-25 21:53:23 +00:00

10 lines
204 B
Kotlin
Vendored

fun interface Bar {
fun invoke(): String
}
operator fun Bar.plus(b: Bar): String = invoke() + b.invoke()
fun box(): String {
return { "O" } <!UNRESOLVED_REFERENCE_WRONG_RECEIVER!>+<!> { "K" }
}