julia> macro outer()
quote
macro inner()
end
@inner
end
end
julia> @outer
ERROR: UndefVarError: @inner not defined
It's not a bug, the whole expression needs to be expand we before it's evaluate so the macro is not defined yet