Skip to content

Fix #4995: Exclude constructors when finding refs #5047

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 2 commits into from
Aug 30, 2018

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Aug 27, 2018

When doing a rename on a class, we used to rename the class and its
constructor, which yield to incorrect code as shown in #4995.

Similarly, finding the references of a class also shows the constructor.

To fix this issue, we omit constructors when finding the references.

Duhemm added 2 commits August 27, 2018 11:45
When doing a rename on a class, we used to rename the class and its
constructor, which yield to incorrect code as shown in scala#4995.

Similarly, finding the references of a class also shows the constructor.

To fix this issue, we omit constructors when finding the references.
@odersky odersky merged commit c9cae24 into scala:master Aug 30, 2018
@Blaisorblade Blaisorblade deleted the fix/4995 branch August 30, 2018 23:55
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