f97cc0b62d
- Put extensionReceiver to candidate even if it's explicit (for sake of clarity) - Split CheckReceiver (dispatch part should only check nullability)
17 lines
253 B
Kotlin
Vendored
17 lines
253 B
Kotlin
Vendored
interface A {
|
|
val list: List<String>
|
|
}
|
|
|
|
interface B {
|
|
val list: MutableList<String>
|
|
}
|
|
|
|
fun B.foo(a: A?) {
|
|
list.plusAssign(mutableListOf(""))
|
|
with(a) {
|
|
list.plusAssign(mutableListOf(""))
|
|
list += mutableListOf("")
|
|
}
|
|
}
|
|
|