Skip to content

Commit

Permalink
Explicit module declaration in conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Jun 10, 2024
1 parent daa75b9 commit 98d0f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pattern.jl
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function _pattern(f_def, vtc, vtwpc)
f_super_dict[:name] = f_comps[:name]
f_super_dict[:args] = g_args

a_cond = [:(kindof($(g_args[i].args[1])) === $(Expr(:quote, x))) for (i, x) in idx_and_variant0]
a_cond = [:(DynamicSumTypes.kindof($(g_args[i].args[1])) === $(Expr(:quote, x))) for (i, x) in idx_and_variant0]
new_cond = nothing
if length(a_cond) == 1
new_cond = a_cond[1]
Expand Down

0 comments on commit 98d0f3f

Please sign in to comment.