Skip to content

Commit

Permalink
Merge pull request #141 from Keno/kf/implicitglobals
Browse files Browse the repository at this point in the history
Declare `Meta` before using it in `@intertypes`
  • Loading branch information
jpfairbanks authored Jun 6, 2024
2 parents a24aeea + 359bcdd commit 6ed8b8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/intertypes/julia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ macro intertypes(file, modexpr)
end
_ => error("expected a module expression, got $modexpr")
end
push!(modexpr.args[3].args, :(global Meta))
imports = Expr(:vect, [:($(Expr(:quote, name)) => $name.Meta) for name in imports]...)
Expr(
:toplevel,
Expand Down

0 comments on commit 6ed8b8b

Please sign in to comment.