We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ea0671 commit bd02a51Copy full SHA for bd02a51
src/matchers.jl
@@ -10,7 +10,8 @@ function matcher(val::Any)
10
# if val is a call (like an operation) creates a term matcher or term matcher with defslot
11
if iscall(val)
12
# if has two arguments and one of them is a DefSlot, create a term matcher with defslot
13
- if length(arguments(val)) == 2 && any(x -> isa(x, DefSlot), arguments(val))
+ args = parent(arguments(val))
14
+ if length(args) == 2 && any(x -> isa(x, DefSlot), args)
15
return defslot_term_matcher_constructor(val)
16
# else return a normal term matcher
17
else
0 commit comments