Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type mapping issue: anonymous classes and functions do not have a unique name #531

Open
traceyyoshima opened this issue Dec 12, 2023 · 0 comments
Labels
bug Something isn't working discovery Investigate and determine what should be done parser-kotlin

Comments

@traceyyoshima
Copy link
Contributor

In Java, anonymous classes and methods are given a unique name $1, $2, etc. In Kotlin, the elements have the same name, <anonymous>. The non-unique name means that the same signature will be generated for anonymous classes or functions of the same type, leading to incorrect type attribution.

@traceyyoshima traceyyoshima added bug Something isn't working parser-kotlin labels Dec 12, 2023
@traceyyoshima traceyyoshima added the discovery Investigate and determine what should be done label Dec 20, 2023
@timtebeek timtebeek moved this to Backlog in OpenRewrite May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working discovery Investigate and determine what should be done parser-kotlin
Projects
Status: Backlog
Development

No branches or pull requests

1 participant