openrewrite / rewrite-kotlin

Work-in-progress implementation of Kotlin language support for OpenRewrite.
Apache License 2.0
43 stars 12 forks source link

Type association issue: Incorrect type assigned to type parameters of inner classes. #509

Closed traceyyoshima closed 9 months ago

traceyyoshima commented 9 months ago

The parameterized type for MutableMap.MutableEntry<K, V> will be set to AbstractMutableSet<MutableMap.MutableEntry<K, V>>

              abstract class LinkedHashTreeMap<K, V> : AbstractMutableMap<K, V>() {
                  abstract inner class EntrySet : AbstractMutableSet<MutableMap.MutableEntry<K, V>>()
              }
fun foo(l: List<Pair<String, String>>) {}
traceyyoshima commented 9 months ago

fixed by https://github.com/openrewrite/rewrite-kotlin/pull/519