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

Backport "Reimplement support for type aliases in SAM types" to 3.3.4 #21553

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

WojciechMazur
Copy link
Contributor

@WojciechMazur WojciechMazur commented Sep 6, 2024

Backports #18317 to 3.3.4-RC2 LTS. The PR fixes a regression introduced in 3.3.2

smarter and others added 2 commits September 6, 2024 00:10
This was dropped in scala#18201 which restricted SAM types to valid parent types,
but it turns out that there is code in the wild that relies on refinements
being allowed here.

To support this properly, we had to enhance ExpandSAMs to move refinements into
type members to pass Ycheck (previous Scala 3 releases would accept the code in
tests/run/i18315.scala but fail Ycheck).

Fixes scala#18315.
@WojciechMazur WojciechMazur merged commit 3d0f02c into scala:release-3.3.4 Sep 6, 2024
17 checks passed
@WojciechMazur WojciechMazur deleted the backport-lts/18317 branch September 6, 2024 14:10
WojciechMazur added a commit that referenced this pull request Sep 6, 2024
#21554)

Backports #20092 to Scala 3.3.4-RC2 LTS on top of #21553. Fixes
regression introduced in 3.3.1

No new Open Community Build regressions were detected for this changes

---------

Co-authored-by: Guillaume Martres <smarter@ubuntu.com>
Co-authored-by: Eugene Flesselle <eugene@flesselle.net>
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