openrewrite / rewrite-kotlin

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

TypeMapping issue: Identifier of method invocation has the wrong type. #506

Closed traceyyoshima closed 6 months ago

traceyyoshima commented 6 months ago

This issue is likely caused by the name of listOf being visited by visitSimpleName.

val arr = listOf(1, 2, 3)

Currently, the name on method invocations is an entirely wrong type through visitSimpleName if the type is a MethodType already. After the changes, the method type on names should be fixed.