Closed ianfiske closed 8 months ago
I'll take a look. I recently refactored our macro handling, so this is my fault.
I guess I was right https://github.com/jump-dev/JuMP.jl/pull/3629#issuecomment-1858912840
The main risk is probably esc scoping bugs
See #3647
I guess the lesson is that when writing tests, we should prefer to use variables rather than literals so that we can check for scoping bugs like this.
Here's a MWE:
With JuMP 1.18.0, this fails with the error
In JuMP 1.17 and below, there is no error.