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
{{ message }}
Repository navigation
Commit 3c8166b
Browse filesBrowse the repository at this point in the historyBrowse files
[ty] Fix hang when negating recursive unions of instance types (#29652)
Fixes a hang when a recursive alias combines positive and negative
references, such as `type A = list[A | ~A] | list[~A]`.
Retain negated recursive aliases whose union members resolve to nominal
instance types, so mapping does not repeatedly unfold the alias into
itself. Other union members still undergo normalization to preserve
literal exclusions and positive constraints.
Fixesastral-sh/ty#4799.
## Test plan
Checked the original reproducer and equivalent spellings using `Not[A]`
and `Intersection[object, Not[A]]` with timeout-bounded debug binaries.
The patched checker completes on all three; the original reproducer
hangs on the baseline.
0 commit comments