Closed kunli2 closed 6 months ago
fixes https://github.com/openrewrite/rewrite-kotlin/issues/517
confirmed the solution does not work for: val x = foo.bar.A.B.A.C()
val x = foo.bar.A.B.A.C()
fixed by the 2nd commit, and added the test case as well.
An alternate PR : https://github.com/openrewrite/rewrite-kotlin/pull/547/files
fixes https://github.com/openrewrite/rewrite-kotlin/issues/517