Commit 36f8650
Broaden unsealed value in
`generalizeValues()` walked the explicit `valueTypes` only — for an
unsealed source the unsealed value type (e.g. `'foo'`) survived
unchanged, leaving the result inconsistent: explicit values
generalized to `int`/`string`/etc. but the unsealed slot still
carried a constant.
Generalize the unsealed value too, mirroring the explicit loop.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>ConstantArrayType::generalizeValues()
1 parent 3beaa09 commit 36f8650
2 files changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2305 | 2305 | | |
2306 | 2306 | | |
2307 | 2307 | | |
2308 | | - | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
2309 | 2315 | | |
2310 | 2316 | | |
2311 | 2317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1999 | 1999 | | |
2000 | 2000 | | |
2001 | 2001 | | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
2002 | 2016 | | |
2003 | 2017 | | |
2004 | 2018 | | |
| |||
0 commit comments