Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport "Do not propagate TypeErrors of ops from TypeComparer#tryAlso" to LTS #21169

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

WojciechMazur
Copy link
Contributor

Backports #21070 to the LTS branch.

PR submitted by the release tooling.

In pos-deep-subtype/i21015.scala:30,
we ask the TypeComparer if `M1[Int] <:< M1[A]`

`isMatchingApply` first tries `isSubArgs` which succeeds,
but then also checks if a weaker constraint is generated by
`recur(tp1.superTypeNormalized, tp2.superTypeNormalized)`.
The latter throws a `RecursionOverflow` which, before the changes,
bypassed the former successful check, and failed the overall subtype test.

Fix #21015

[Cherry-picked 2d0e373]
Base automatically changed from lts-20327 to lts-3.3 July 11, 2024 08:05
@WojciechMazur
Copy link
Contributor Author

No regressions detected in the community build up to lts-21070.

Reference

@WojciechMazur WojciechMazur merged commit 0c6fdea into lts-3.3 Jul 11, 2024
19 checks passed
@WojciechMazur WojciechMazur deleted the lts-21070 branch July 11, 2024 08:05
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