Skip to content

Fix method overwrite warning in variable_rate tests#549

Merged
ChrisRackauckas merged 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude:fix-method-overwrite-warning
Feb 8, 2026
Merged

Fix method overwrite warning in variable_rate tests#549
ChrisRackauckas merged 1 commit intoSciML:masterfrom
ChrisRackauckas-Claude:fix-method-overwrite-warning

Conversation

@ChrisRackauckas-Claude
Copy link
Copy Markdown
Contributor

Summary

  • Rename affect2! to affect2b! at line 99 of test/variable_rate.jl to avoid overwriting the identically-named function defined at line 89
  • This eliminates the WARNING: Method definition affect2!(Any) overwritten warning that appears in all InterfaceI CI runs (LTS, stable, and pre-release)

Context

CI runs with --warn-overwrite=yes enabled, which flags when a method is redefined. In test/variable_rate.jl, the function affect2! was defined identically at lines 89 and 99 — first for a ConstantRateJump and then for a VariableRateJump. Renaming the second to affect2b! (consistent with the rate2b already used on line 98) resolves the warning without changing behavior since both functions had identical bodies.

Test plan

  • Full Pkg.test() passes locally (all test groups)
  • No method overwrite warnings remain in test output
  • Runic formatting check passes
  • CI InterfaceI jobs should no longer show the affect2! overwrite warning

🤖 Generated with Claude Code

Rename `affect2!` to `affect2b!` at line 99 to avoid overwriting
the identically-named function defined at line 89. This eliminates
the `WARNING: Method definition affect2!(Any) overwritten` that
appears in CI with `--warn-overwrite=yes`.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Opus 4.6 <[email protected]>
@ChrisRackauckas ChrisRackauckas merged commit 7da35c2 into SciML:master Feb 8, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants