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 b99041f
Browse filesBrowse the repository at this point in the historyBrowse files
Record try-path definedness as conditional on the catch variable being undefined
At a try/catch join where the catch variable is untracked on the non-catch
path and certainly defined at the end of the catch body, its later
definedness tells the joined paths apart. Record conditional expression
holders with a certainty-No (and, for scopes where any variable can exist,
a maybe-defined-null) condition on the catch variable, restoring the
non-catch certainty and type of variables the join demoted to
maybe-defined.
To let such holders fire, the isset()-style falsey specification in
MutatingScope::applySpecifiedTypes() now publishes the certainty change
into the specified-expressions batch - rescuing the waiting holders around
unsetExpression()'s invalidation, which would otherwise drop them at the
very specification they wait for. A second catch clause merging into the
join drops the holders via the conditional-expressions intersection, so
multi-catch stays conservative.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CGhnJQpUWRRpg6H5LuWJkA
Amp-Thread-ID: https://ampcode.com/threads/T-01a19219-7dd4-76fa-9374-bbfeff99ea56
0 commit comments