Skip to content

Conversation

Linyxus
Copy link
Contributor

@Linyxus Linyxus commented Aug 25, 2025

Fixes #23746 and #19076.

Widen type parameters to their upper bounds in certain cases before box adaptation. This helps revealing a boxed type inside the upper bound of a type parameter.

@Linyxus Linyxus requested a review from odersky August 25, 2025 16:40
@Linyxus Linyxus assigned odersky and Linyxus and unassigned odersky Aug 25, 2025
@Linyxus Linyxus assigned odersky and unassigned Linyxus Aug 26, 2025
Copy link
Contributor

@odersky odersky left a comment

Choose a reason for hiding this comment

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

Looks good!

@odersky odersky merged commit 451b745 into scala:main Aug 26, 2025
82 of 84 checks passed
@odersky odersky deleted the fix-boxes-tvars branch August 26, 2025 21:31
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.

CC: Type variables can be used to bypass unboxing
2 participants