Files
kotlin-fork/compiler/testData/diagnostics/tests/funInterface/funInterfaceConversionOnReceiver.fir.kt
T
Mikhail Zarechenskiy 6c5806f971 Add test for obsolete issue
#KT-38161 Obsolete
2020-06-05 16:30:08 +03:00

10 lines
191 B
Kotlin
Vendored

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