Skip to content

Conversation

zielinsky
Copy link
Member

@zielinsky zielinsky commented Oct 8, 2025

Fixes implicit divergence checking regression by correcting how TypeSizeAccumulator handles TypeParamRef bounds. Instead of adding both upper and lower bounds to the type size, we now take the maximum of both bound sizes.

Fixes #24007

@zielinsky zielinsky force-pushed the i24007_2 branch 2 times, most recently from ad2e4d3 to 376766b Compare October 8, 2025 22:53
@zielinsky zielinsky marked this pull request as ready for review October 9, 2025 09:44
@zielinsky zielinsky requested a review from odersky October 9, 2025 11:17
@eejbyfeldt
Copy link
Contributor

For what it worth taking the max size of the bounds was also my thinking when looking into #24007

@zielinsky zielinsky merged commit 0afa50d into scala:main Oct 9, 2025
51 checks passed
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.

Regression in zio/zio-schema for typer/implicit resolution

3 participants