Add test for obsolete issue

#KT-38161 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2020-06-05 16:28:00 +03:00
parent f9b3daabd1
commit 6c5806f971
6 changed files with 44 additions and 0 deletions
@@ -0,0 +1,9 @@
fun interface Bar {
fun invoke(): String
}
operator fun Bar.plus(b: Bar): String = invoke() + b.invoke()
fun box(): String {
return { "O" } <!INAPPLICABLE_CANDIDATE!>+<!> { "K" }
}