Skip to content

Commit 1ff3bba

Browse files
committed
fix: try to improve type inference
1 parent c90383f commit 1ff3bba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SpecialOperators.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ function any_special_operators(::Union{O,Type{O}}) where {B,U,O<:OperatorEnum{B,
1515
end
1616

1717
# Use this to customize evaluation behavior for operators:
18-
@inline special_operator(::Type) = false
19-
@inline special_operator(f) = special_operator(typeof(f))
18+
@inline special_operator(::Type{F}) where {F} = false
19+
@inline special_operator(::F) where {F} = special_operator(F)
2020

2121
Base.@kwdef struct AssignOperator <: Function
2222
target_register::Int

0 commit comments

Comments
 (0)