Skip to content

Commit 8061124

Browse files
authored
Make MacroExpansionError subtype of Exception (JuliaLang/JuliaLowering.jl#26)
1 parent 6181e85 commit 8061124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JuliaLowering/src/macro_expansion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function adopt_scope(ex, ctx::MacroContext)
7474
adopt_scope(ex, ctx.scope_layer.id)
7575
end
7676

77-
struct MacroExpansionError
77+
struct MacroExpansionError <: Exception
7878
context::Union{Nothing,MacroContext}
7979
ex::SyntaxTree
8080
msg::String

0 commit comments

Comments
 (0)