Skip to content

Allow == on private (and "privately constructible") classes that we can prove have no equals overrides in their class hierarchy.#5891

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_931296006
Jun 19, 2026
Merged

Allow == on private (and "privately constructible") classes that we can prove have no equals overrides in their class hierarchy.#5891
copybara-service[bot] merged 1 commit into
masterfrom
test_931296006

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Allow == on private (and "privately constructible") classes that we can prove have no equals overrides in their class hierarchy.

(a further counterproposal to a116aaf)

(I'm ignoring the possibility that someone might generate subclasses that do override equals (when the superclass did not already) at runtime.)

This helps with #5865.

… can prove have no `equals` overrides in their class hierarchy.

(a further counterproposal to a116aaf)

(I'm ignoring the possibility that someone might generate subclasses that _do_ override `equals` (when the superclass did not already) at runtime.)

This helps with #5865.

PiperOrigin-RevId: 935049836
@copybara-service copybara-service Bot merged commit b653855 into master Jun 19, 2026
@copybara-service copybara-service Bot deleted the test_931296006 branch June 19, 2026 21:45
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.

1 participant