-
-
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
Inconsistency in 1-arg and 3-arg names in :method
Exprs
#38451
Comments
Perhaps that's obvious from context, but FWIW this is on 1.6. 1.5 yields │ %5 = Core.svec(%3, %4, $(QuoteNode(:(#= REPL[2]:8 =#))))
│ $(Expr(:method, :(Base.getproperty(Main.MyModule, :my_fun)), :(%5), CodeInfo(quote
return 20
end))) |
This was changed in #37287. The difference is whether or not the method can create an entirely new method or not (i.e. whether it's interpreted as an identifier or an expression). |
To make sure I understand, you're saying this is how it should work and not a bug? If so, perhaps we should update https://docs.julialang.org/en/v1.6-dev/devdocs/ast/#Expr-types. I can do that, but I'd need to know a bit more about the conditions under which it uses |
Yes, this is how it should work. As Keno said, the difference is that |
This is a re-post of timholy/Revise.jl#568:
And then:
I was surprised by the
nothing
used for argument 1 of the 3-arg:method
Expr
; shouldn't it be:my_fun
?The text was updated successfully, but these errors were encountered: