Skip to content

Commit b37c944

Browse files
committed
fix: try to improve type inference
1 parent 525370a commit b37c944

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SpecialOperators.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ import ..EvaluateModule:
1010
special_operator, deg2_eval_special, deg1_eval_special, any_special_operators
1111
import ..StringsModule: get_op_name
1212

13-
function any_special_operators(::Union{O,Type{O}}) where {B,U,O<:OperatorEnum{B,U}}
13+
@generated function any_special_operators(
14+
::Union{O,Type{O}}
15+
) where {B,U,O<:OperatorEnum{B,U}}
1416
return any(special_operator, B.types) || any(special_operator, U.types)
1517
end
1618

0 commit comments

Comments
 (0)