openrewrite / rewrite-kotlin

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

Fix type of nested inner-class field access #532

Closed kunli2 closed 6 months ago

kunli2 commented 6 months ago

fixes https://github.com/openrewrite/rewrite-kotlin/issues/517

kunli2 commented 6 months ago

confirmed the solution does not work for: val x = foo.bar.A.B.A.C()

fixed by the 2nd commit, and added the test case as well.

kunli2 commented 6 months ago

An alternate PR : https://github.com/openrewrite/rewrite-kotlin/pull/547/files