Skip to content

Commit 359bcdd

Browse files
committed
Declare Meta before using it in @intertypes
The `@intertypes` macro assigns `mod.Meta` without declaring it. This was accidentally allowed in Julia 1.9/1.10 due to a dropped error check, but will likely be disallowed again in Julia 1.11. See JuliaLang/julia#54678. This just declares it `global` (which is what happened implicitly on Julia 1.10/1.11). That said, you may want a `Const` instead, in which case you would need a different fix.
1 parent a24aeea commit 359bcdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/intertypes/julia.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ macro intertypes(file, modexpr)
379379
end
380380
_ => error("expected a module expression, got $modexpr")
381381
end
382+
push!(modexpr.args[3].args, :(global Meta))
382383
imports = Expr(:vect, [:($(Expr(:quote, name)) => $name.Meta) for name in imports]...)
383384
Expr(
384385
:toplevel,

0 commit comments

Comments
 (0)