Skip to content

Commit

Permalink
typo in using_expr
Browse files Browse the repository at this point in the history
  • Loading branch information
longemen3000 committed May 30, 2023
1 parent 1615f58 commit 75eea22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ExtensionsExt.jl
Expand Up @@ -26,9 +26,10 @@ function using_expr(expr,type::Symbol,has_ext::Bool)
return :(using ..($expr))
end
end

end

calls_expr = Expr(:(:))

if expr.head == :call
mod = expr.args[2]
first_expr = expr.args[3]
Expand Down Expand Up @@ -86,7 +87,7 @@ macro require_using(expr)
has_ext = ExtensionsExt.has_extensions()
_using_expr = using_expr(expr,:using,has_ext)
return :($_using_expr) |> esc

end

struct ExtensionError <: Exception
Expand Down

0 comments on commit 75eea22

Please sign in to comment.