Skip to content

Commit

Permalink
Updated error message for AssertionError in shadowTuple (#2278)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlk9 authored Jan 22, 2025
1 parent ccb4f68 commit c297307
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rules/jitrules.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,9 @@ end
) where {Ann,Nargs}
expr = Vector{Expr}(undef, Nargs)
for i = 1:Nargs
@assert !(args[i] <: Active)
if args[i] <: Active
throw(AssertionError("Unsupported Active arg $(args[i])"))
end
@inbounds expr[i] = if args[i] <: Const
:(args[$i].val)
elseif args[i] <: MixedDuplicated
Expand Down

0 comments on commit c297307

Please sign in to comment.