KT-50862 Unwrap use-site substitution overrides

Use-site substitution override happens in situations like this:

```
interface List<A> { fun get(i: Int): A }

fun take(list: List<String>) {
  list.get(10) // this call
}
```

We want to have those overrides unwrapped, because we don't want
to deal with a different KtSymbol for each possible use-site

^KT-50862 Fixed
This commit is contained in:
Roman Golyshev
2022-01-27 19:55:53 +03:00
committed by Space
parent 564e408434
commit f0f2f67024
35 changed files with 113 additions and 507 deletions
@@ -1,2 +1,2 @@
Resolved to:
0: (in kotlin.collections.MutableList) operator fun get(index: kotlin.Int): kotlin.Int
0: (in kotlin.collections.MutableList) operator fun get(index: kotlin.Int): E
@@ -1,2 +1,2 @@
Resolved to:
0: (in kotlin.collections.MutableList) operator fun set(index: kotlin.Int, element: kotlin.Int): kotlin.Int
0: (in kotlin.collections.MutableList) operator fun set(index: kotlin.Int, element: E): E