Skip to content

Backport "Refine the bounds of the Tuple.Filter type lambda predicate .." to 3.6 #21960

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

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

WojciechMazur
Copy link
Contributor

Backports #21286 to the 3.6.2.

PR submitted by the release tooling.
[skip ci]

to only require it be defined on the elements of the tuple.

This is one of the ongoing proposed tuple improvements, addressing #19175.

As carefully pointed out by @sjrd, this _is_ a potential breaking change.
See tests/neg/tuple-filter-compat.scala for an example.

This is not an unprecedented change however,
the analogous improvements were made to `Tuple.{Map, FlatMap}` in 28a695e.

[Cherry-picked a1d7f5e]
@WojciechMazur
Copy link
Contributor Author

No regressions detected in the community build up to release-3.6.2-backport-21949.

Reference

@WojciechMazur WojciechMazur merged commit 650efea into release-3.6.2 Nov 18, 2024
32 checks passed
@WojciechMazur WojciechMazur deleted the release-3.6.2-backport-21286 branch November 18, 2024 16:11
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