You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix Match case on type don't exaust on types #598 (#1994)
Summary:
Fixes#598
Updated Pattern::MatchAs so that, when a case introduces an alias, the resultant narrows are mirrored back onto the original match subject (without rebinding names twice), ensuring later branches see the refined type.
Introduced NarrowOp::rebase_subject plus facet-merging helpers and reworked NarrowOps::and_for_subject in to re-target alias narrows, compose facet chains/origins, and insert the rebased operations without placeholder pollution so negated flows correctly eliminate matched variants.
Pull Request resolved: #1994
Test Plan: Added test_match_alias_narrows_subject
Reviewed By: rchen152
Differential Revision: D90406316
Pulled By: stroxler
fbshipit-source-id: 9f01f2c5955e188562285cdf054e3df09ce403dc
0 commit comments