Skip to content

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
@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