Hi fellows,

func = macroexpand(fdef);
editDownload(expand(func))



function editDownload(func::Expr)
                 Helper.replace(func) do expr
if isa(expr,Expr) && expr.head == :call
                                *func = expr.args[1] 
# (top(getfield))(Main.Download,:task)*
*if func == GlobalRef(Download,:task) # this is always returning false*
end
end
nothing
end
end


I am doing some operations on the lowered AST. and for some reason the 
comparison for the GlobalRef doesn't work.
and I can't figure out why.

Can you help me out?

Thanks

Reply via email to