Skip to content

Commit c297307

Browse files
authored
Updated error message for AssertionError in shadowTuple (#2278)
1 parent ccb4f68 commit c297307

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rules/jitrules.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,9 @@ end
11401140
) where {Ann,Nargs}
11411141
expr = Vector{Expr}(undef, Nargs)
11421142
for i = 1:Nargs
1143-
@assert !(args[i] <: Active)
1143+
if args[i] <: Active
1144+
throw(AssertionError("Unsupported Active arg $(args[i])"))
1145+
end
11441146
@inbounds expr[i] = if args[i] <: Const
11451147
:(args[$i].val)
11461148
elseif args[i] <: MixedDuplicated

0 commit comments

Comments
 (0)