Skip to content

Fix printing parents in decompiler #4686

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

Merged
merged 1 commit into from
Jun 20, 2018

Conversation

nicolasstucki
Copy link
Contributor

  • Fixed multiple argument list constructors
  • Added missing with in between the parents

Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise, LGTM

}

def printSeparated(list: List[Parent]): Unit = list match {
case Nil =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unreachable case, throw an exception here if reached?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the nonEmpty check, now this is reachable.

* Fixed multiple argument list constructors
* Added missing `with` in between the parents
@nicolasstucki nicolasstucki force-pushed the fix-decompiling-parents branch from 3b39530 to 057b061 Compare June 20, 2018 05:43
@nicolasstucki nicolasstucki merged commit 1f523ea into scala:master Jun 20, 2018
@allanrenucci allanrenucci deleted the fix-decompiling-parents branch June 20, 2018 07:36
@Blaisorblade Blaisorblade restored the fix-decompiling-parents branch June 21, 2018 23:19
@Blaisorblade Blaisorblade deleted the fix-decompiling-parents branch June 21, 2018 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants