Commit 82ba8ee
Fix invalid setfield! fallback in MOIOptimizationNLPCache setproperty!
`MOIOptimizationNLPCache` is an immutable struct whose `setproperty!` delegates
mutation to the (mutable) evaluator and its `ReInitCache`. The final fallback
called `setfield!(cache, name, x)` on the immutable cache itself, which can never
succeed and which JET flagged as a guaranteed error (`setfield!: immutable struct
... cannot be changed`). Replace the dead fallback with an explicit, informative
`ArgumentError`.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RtJAi7bALH5XkakjS6Yb6j1 parent a674f2f commit 82ba8ee
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
0 commit comments