Skip to content

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 25, 2025

Fixes #23422

odersky added 2 commits June 25, 2025 12:21
A type `A[b.type]` with a singleton type argument is converted to
`A[box b.type^{b}]` so that the box status is recorded. Since box status
only comes with CapturingTypes we have to convert the singleton type
to a capturing type.

Fixes scala#23207
@odersky odersky changed the title Expand Capability types also in arguments of Capability classes Fixes #23422 Expand Capability types also in arguments of Capability classes Jun 25, 2025
@odersky odersky requested a review from Linyxus June 25, 2025 22:24
Copy link
Contributor

@Linyxus Linyxus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Linyxus Linyxus assigned odersky and unassigned Linyxus Jun 26, 2025
@odersky odersky merged commit 1452ba2 into scala:main Jun 26, 2025
48 of 60 checks passed
@odersky odersky deleted the fix-23422 branch June 26, 2025 12:46
@WojciechMazur WojciechMazur added this to the 3.7.3 milestone Jul 29, 2025
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.

Type arguments of capability classes not properly boxed in CC Setup
3 participants