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

SI-6089 better tail position analysis for matches #939

Merged
merged 1 commit into from Jul 19, 2012

Conversation

adriaanm
Copy link
Contributor

review by @paulp, who discovered the problem

we mistakenly went into apply nodes to look for matchEnd-labeldefs
in tail positions -- only apply nodes that jump to labels in tailpos
should be traversed (this arises for nested matches)

we mistakenly went into apply nodes to look for matchEnd-labeldefs
in tail positions -- only apply nodes that jump to labels in tailpos
should be traversed (this arises for nested matches)
@scala-jenkins
Copy link

Started jenkins job pr-scala-testsuite-linux-opt at https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/586/

@scala-jenkins
Copy link

jenkins job pr-scala-testsuite-linux-opt: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/586/

@paulp
Copy link
Contributor

paulp commented Jul 19, 2012

Looks delicious to me.

adriaanm added a commit that referenced this pull request Jul 19, 2012
SI-6089 better tail position analysis for matches
@adriaanm adriaanm merged commit 92716b5 into scala:2.10.x Jul 19, 2012
adriaanm added a commit to adriaanm/scala that referenced this pull request Jul 21, 2012
pull scala#939 made tail position detection for matches more strict to fix SI-6089,
but became too strict: need to include the tail positions `_` in `_ || _` and `_ && _`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants