mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
A second store to an already-written array element must prevent HandleSimpleArrayInitializer from folding the stores into a collection initializer: the earlier store would be dropped (a visible change when its value has side effects), and without the nextMinimumIndex guard the transform crashes on the colliding index. The nextMinimumIndex check already enforces this; pin it with a Pretty fixture so the boundary between a foldable initializer and a duplicate-write sequence stays covered. Assisted-by: Claude:claude-fable-5:Claude Codemaster
1 changed files with 13 additions and 0 deletions
Loading…
Reference in new issue