Commit 72c1e75
Generalize deep nested array setExistingOffsetValueType for arbitrary depth
The previous fix only handled 3-level nesting by checking that inner
value types were constant arrays. For 4+ levels, the intermediate
value types are general ArrayTypes, so the condition failed.
Generalize the condition to recurse through any depth of array nesting:
- Check both types are non-constant arrays (constant arrays are handled
by the existing block above)
- Check both types' value types are arrays (ensuring there's deeper
nesting structure to recurse into, excluding generic arrays like
non-empty-array whose value type is mixed)
The recursion naturally bottoms out when it reaches constant arrays
at the deepest level.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 73870d5 commit 72c1e75
2 files changed
Lines changed: 24 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| 415 | + | |
415 | 416 | | |
416 | | - | |
417 | | - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
418 | 420 | | |
419 | 421 | | |
420 | 422 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
27 | 47 | | |
28 | 48 | | |
29 | 49 | | |
| |||
0 commit comments