765cad8448
Consider the following code:
```
fun test(a: List<String>) {
a.first()
}
```
The dispatch receiver type of `first` in this case is `List<T>` before
this change. After this change, it's `List<String>`.
In addition, this change also replace the dispatch receiver type with
the more specific type if available. For example, consider the following
```
class MyList: ArrayList<String>()
fun test(a: MyList) {
a.get(0)
}
```
The dispatch receiver type of `get` is `MyList`, instead of
`ArrayList<String>`. That is, a fake override is created in this case.
4 lines
270 B
Plaintext
Vendored
4 lines
270 B
Plaintext
Vendored
Resolved to:
|
|
0: (in kotlin.collections.CharIterator) abstract operator fun hasNext(): kotlin.Boolean
|
|
1: (in kotlin.collections.CharIterator) operator fun next(): kotlin.Char
|
|
2: (in kotlin.text) operator fun kotlin.CharSequence.iterator(): kotlin.collections.CharIterator |