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

Fix #16675 : -Wunused false positive on case class generated method, due to flags used to distinguish case accessors. #16683

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

PaulCoral
Copy link
Contributor

@PaulCoral PaulCoral commented Jan 13, 2023

@szymon-rd This fixes #16675. This add more flags checks on symbol to distinguish generated method and various accessors generated by case classes

DONE

  • Fix flag confusion between (case)accessor and (potentially) generated method in classes
  • Update test suits

- Fix flag confusion between (case)accessor and (potentially) generated
  method in classes
- Update test suits. Add test from scala#16675
@PaulCoral PaulCoral marked this pull request as ready for review January 13, 2023 13:29
@PaulCoral PaulCoral changed the title Fix #16675 : Flags used to distinguish case accessors Fix #16675 : -Wunused false positive on case class generated method, due to flags used to distinguish case accessors. Jan 13, 2023
@szymon-rd szymon-rd merged commit 722acb9 into scala:main Jan 13, 2023
@PaulCoral PaulCoral deleted the fix/Wunused/flags_for_class branch January 13, 2023 16:09
@Kordyjan Kordyjan added this to the 3.3.0 milestone Aug 1, 2023
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.

-Wunused:all and private case class constructors
3 participants