Open Keno opened 3 months ago
julia> macro foo() Expr(:toplevel, :(baremodule $(gensym()); end)) end @foo (macro with 2 methods) julia> @foo() ERROR: TypeError: in module, expected Symbol, got a value of type GlobalRef Stacktrace: [1] top-level scope @ REPL[7]:1
While we're at it, using .$(GlobalRef(Foo, :Bar)) should probably also work.
using .$(GlobalRef(Foo, :Bar))