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 bddf27c
Browse filesBrowse the repository at this point in the historyBrowse files
Keep an explicit key of an unsealed shape as an optional never key when subtracting its offset
ConstantArrayType::tryRemove() subtracted HasOffsetType and
HasOffsetValueType by unsetting the offset. On an unsealed shape whose
extras can hold that offset, dropping the explicit key lets the extras
supply it again with their value type, so the "subtracted" shape is wider
than the original: array{a?: string, ...} minus hasOffset('a') was
array{...}, and array{a?: string, b: int, ...<string, int>} re-admitted
'a' as int. The falsey isset() narrowing from 77527df and the falsey
array_key_exists() narrowing both go through this subtraction, and merging
the widened branch back collapsed the subject to array.
The key now stays as an optional never key instead - absent, but still
fencing the offset off from the extras - and branch merges restore the
original shape.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xj1fBpXNVT34mRk1GQBxJF
0 commit comments