f97cc0b62d
- Put extensionReceiver to candidate even if it's explicit (for sake of clarity) - Split CheckReceiver (dispatch part should only check nullability)
10 lines
191 B
Kotlin
Vendored
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" }
|
|
}
|