-
-
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
Is edit(::Callable)
broken on v0.4?
#9866
Comments
I noticed this, too. I have the following in my .juliarc.jl, but haven't submitted it since it's not really the right solution here: Base.functionloc(f::Base.Callable) = (m = methods(f); isempty(m) ? error("no methods for $f found") : functionloc(first(m))) As I remember it, the issue is that you often want the inverse of This is most important for things like call overloads. You want to find all signatures that are a subtype of |
Awesome thanks, for most of my use-cases the methods are in the same file so this is good enough for me. |
Yes, we used to use the most specific matching method here. However that is really quite arbitrary. In the version of julia I happen to be looking at now, However you can get that behavior with We should remove the default value for the type argument to |
I noticed the following behaviour on the master branch from 7 days ago, but it's also present on the current master.
On v0.3, however
Running
edit(which, (Function, Any...))
takes me to this line suggesting that the issue might be related to the deprecation ofwhich(f, args...)
.Possibly also related to #9471 or #9536?
The text was updated successfully, but these errors were encountered: