Skip to content

Conversation

nox213
Copy link
Contributor

@nox213 nox213 commented Aug 17, 2025

fix #23369

  1. Add fallback logic in inferPrefixMap that uses subtype relationships to find a singleton when an exact match cannot be found
  2. Ensure that constraints are calculated after applying inferPrefixMap

@nox213
Copy link
Contributor Author

nox213 commented Aug 18, 2025

I will look into CI failure

@Gedochao Gedochao requested a review from noti0na1 August 27, 2025 11:21
@nox213 nox213 changed the title fix(patmat): Use childPrefix to resolve path-dependent sealed children fix(patmat): Add subtype-based fallback in inferPrefixMap and recalculate constraints after application Sep 2, 2025
@tgodzik
Copy link
Contributor

tgodzik commented Sep 9, 2025

@noti0na1 Are you able to take a look at this? The contributor pinged us on discord.

@noti0na1
Copy link
Member

noti0na1 commented Sep 9, 2025

Sure, I saw there were some new commits last week so I was not sure if the PR is completed or not.

Copy link
Member

@noti0na1 noti0na1 left a comment

Choose a reason for hiding this comment

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

The logic looks good to me! I will approve after the test is updated.

add new line

second approach

revert previous approach

address reviews
@noti0na1 noti0na1 merged commit fc2244e into scala:main Sep 10, 2025
44 checks passed
@nox213 nox213 deleted the fix/i23369 branch September 17, 2025 05:24
WojciechMazur added a commit that referenced this pull request Sep 22, 2025
…nd recalculate constraints after application" to 3.7.4 (#23995)

Backports #23771 to the 3.7.4.

PR submitted by the release tooling.
[skip ci]
@WojciechMazur WojciechMazur added this to the 3.7.4 milestone Sep 23, 2025
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.

No warning about non-exhaustive pattern matching for constructor with type bound enclosing type member

4 participants