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

destruct gets mangled during parsing/rewrite #58

Closed
nomisRev opened this issue Mar 30, 2023 · 0 comments
Closed

destruct gets mangled during parsing/rewrite #58

nomisRev opened this issue Mar 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@nomisRev
Copy link
Contributor

A Kotlin destructuring statement gets rewritten incorrectly. See #57 with failing test.

fun example() {
  val (a, b, c) = Triple(1, 2, 3)
}

gets rewritten to

fun example() {
  val <destruct>abc(a, b, c) = Triple(1, 2, 3)
}
@timtebeek timtebeek added the bug Something isn't working label Mar 30, 2023
@timtebeek timtebeek moved this to Backlog in OpenRewrite Mar 30, 2023
@traceyyoshima traceyyoshima moved this from Backlog to In Progress in OpenRewrite Apr 4, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants