Skip to content

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Sep 26, 2025

Backports scala#20459 to the 3.3.7.

PR submitted by the release tooling.
[skip ci]

Emil Ejbyfeldt and others added 3 commits September 26, 2025 19:29
This fixes scala#15692 and does not seem to break an existing compilation
tests. The problem with seen when it comes scala#15692 is that seen means
that type that has repeated types will get a lower size and this
incorrectly triggers the divergence check since some of the steps
involved less repeated types.

The seen logic was introduced in scala#6329 and the motivation was to deal
with F-bounds. Since not tests fail it not clear if this logic is still
needed to deal with F-bounds? If it is still needed we can add a test
and instead of removing the seen logic we can make it track only types
the appear as a bound and could cause infinite recursion instead of
tracking all.

[Cherry-picked c2ef180]
Also adds test case that stackoverflows without any seen check.

[Cherry-picked 008d58e]
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