Skip to content

Make sure the span of EmptyTree and EmptyValDef are never set #5892

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
Feb 14, 2019

Conversation

nicolasstucki
Copy link
Contributor

@nicolasstucki nicolasstucki commented Feb 11, 2019

It is important not to set the span as if the sources differ the tree will be cloned
and the EmptyTree will have multiple instances which are not comparable.

Based on #5883

liufengyun
liufengyun previously approved these changes Feb 12, 2019
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

It is important not to set the span as if the sources differ the tree will be cloned
and the EmptyTree will have multiple instances which are not comparable.
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.

LGTM

@odersky odersky merged commit 9f86c88 into scala:master Feb 14, 2019
@ghost ghost removed the stat:needs review label Feb 14, 2019
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.

3 participants