Skip to content

Conversation

@nox213
Copy link
Contributor

@nox213 nox213 commented Jan 13, 2026

closes: #24322

forceInvariantRefinement was hardcoded to true during constraint calculation, which prevented correct handling of mixed-in trait patterns. This PR passes forceInvariantRefinement as true only if the type is not a trait.

@osohyun0224
Copy link

@nox213 Nice catch! This change makes a lot of sense and improves correctness for mixed-in trait patterns. Thanks for the fix — hope to see this merged soon 🙌

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.

Missing unchecked type argument warning

3 participants