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

(Re-)Drop inaccessible subclasses from refineUsingParent #21930

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

dwijnand
Copy link
Member

@dwijnand dwijnand commented Nov 12, 2024

Re-fixes #21790
Closes #21896

In tests/pos/i21790.scala, O.A has no class symbol, because it's an
inaccessible private class of S.  But in tests/warn/i21860.scala,
Shape.Triangle doesn't have a "classSymbol" because it has multiple -
Shape and Corners.  So use .classSymbols.isEmpty instead of
!.classSymbol.exists
@dwijnand dwijnand marked this pull request as ready for review November 12, 2024 16:04
@dwijnand dwijnand requested a review from hamzaremmal November 12, 2024 16:05
@hamzaremmal hamzaremmal merged commit 58f88a6 into scala:main Nov 18, 2024
29 checks passed
@dwijnand dwijnand deleted the disjoint-private-sealed-2 branch November 18, 2024 15:55
@WojciechMazur WojciechMazur added this to the 3.6.3 milestone Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants