Skip to content

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Jun 25, 2025

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 #23207

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 merged commit 43c6ee7 into scala:main Jun 25, 2025
60 checks passed
@odersky odersky deleted the fix-23207 branch June 25, 2025 22:26
@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.

Capture leak by selection chain
3 participants