openrewrite / rewrite-kotlin

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

MemberReferences will have the same `type` as the `VariableType` or `MethodType` #485

Closed traceyyoshima closed 10 months ago

traceyyoshima commented 10 months ago

The FIR element associated to the reference is the same element, which causes the type to exist in both type and either variableType or methodType.

It is likely possible to retrieve the correct type from the variable or method type.