You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
handle method signatures represented as GlobalRef/QuoteNode (#66)
Julia allows following method definitions, but LoweredCodeUtils
(and thus Revise) can't handle them well, and it lead to the issue
<timholy/Revise.jl#643>:
```julia
function foogr end
macro deffoogr()
gr = GlobalRef(__module__, :foogr) # will be lowered to `GlobalRef`
quote
$gr(args...) = length(args)
end
end
@deffoogr
@show foogr(1,2,3) # => 3
function fooqn end
macro deffooqn()
sig = :($(GlobalRef(__module__, :fooqn))(args...)) # will be lowered to `QuoteNode`
return Expr(:function, sig, Expr(:block, __source__, :(length(args))))
end
@deffooqn
@show fooqn(1,2,3) # => 3
```
---
fixestimholy/Revise.jl#643
0 commit comments