Skip to content

Conversation

@som-snytt
Copy link
Contributor

Fixes #24235

References to a case class from synthetic methods in its companion
are not usages for -Wunused.

@som-snytt som-snytt force-pushed the issue/24235-unused-case-class branch from 2bb9b3c to 9474fea Compare October 23, 2025 16:58
@som-snytt som-snytt marked this pull request as ready for review October 23, 2025 19:21
@Gedochao Gedochao requested a review from tgodzik October 27, 2025 08:39
@tgodzik tgodzik merged commit da0a934 into scala:main Oct 27, 2025
51 checks passed
@som-snytt som-snytt deleted the issue/24235-unused-case-class branch October 27, 2025 11:24
@WojciechMazur WojciechMazur added this to the 3.8.0 milestone Oct 28, 2025
tgodzik pushed a commit to scala/scala3-lts that referenced this pull request Nov 10, 2025
Fixes scala#24235 

References to a case class from synthetic methods in its companion
are not usages for `-Wunused`.
[Cherry-picked da0a934]
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.

No warning on unused private case class inside object

3 participants