Skip to content

Commit 1f1e52f

Browse files
committed
check for same operation made with nameof() and not with strings
1 parent b9da161 commit 1f1e52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/matchers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ function defslot_term_matcher_constructor(term)
156156
# if data is not a list, return nothing
157157
!islist(data) && return nothing
158158
# if data (is not a tree and is just a symbol) or (is a tree not starting with the default operation)
159-
if !iscall(car(data)) || (istree(car(data)) && string(defslot.operation) != string(operation(car(data))))
159+
if !iscall(car(data)) || (istree(car(data)) && nameof(operation(car(data))) != defslot.operation)
160160
other_part_matcher = matchers[defslot_index==2 ? 2 : 3] # find the matcher of the normal part
161161

162162
# checks wether it matches the normal part

0 commit comments

Comments
 (0)