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 #428: Work around https://github.com/lampepfl/dotty/issues/19307 #431

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

sjrd
Copy link
Contributor

@sjrd sjrd commented Dec 20, 2023

dotc generates an illegal access for the generated equals method of AnyVals whose param is not a val. We work around it with a last-ditch effort to accept that selection, with as many guards as we can not to affect regular code.

dotc generates an illegal access for the generated `equals` method
of `AnyVal`s whose param is not a `val`. We work around it with a
last-ditch effort to accept that selection, with as many guards as
we can not to affect regular code.
@sjrd sjrd requested a review from adpi2 December 20, 2023 09:57
@sjrd sjrd merged commit 3346833 into scalacenter:main Dec 20, 2023
4 checks passed
@sjrd sjrd deleted the fix-anyval-equals-corner-case branch December 20, 2023 14:37
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