-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method redefinition does not take effect #26820
Comments
PS: This is on both 0.6.2 (Windows and Linux) and 0.7 latest nightly. |
FWIW, further experimentation shows that
|
I can no longer reproduce this. There've been a bunch of bug fixes in this area. Can you try your original problem and see if the bug persists? |
My code is not compatible with 0.7 yet, so I can't test the original issue. I can confirm however that the MWE above is fixed on latest Windows nightly. Feel free to close. |
Reduced from here https://discourse.julialang.org/t/julia-calls-the-old-method-after-method-is-redefined/10327/7:
Setup:
Calling the method works as expected:
Now, call the function
selectmodel
(this step is crucial for reproducing the issue) and redefine the method (note no warning about the method redefinition):However, the new definition doesn't take effect, despite
@code_llvm
showing the updated definition:The text was updated successfully, but these errors were encountered: