Skip to content

Commit

Permalink
Fix reduce_empty for Julia >= 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed May 29, 2020
1 parent 8ae9509 commit 13c069c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InitialValues.jl
Expand Up @@ -317,6 +317,6 @@ hasinitialvalue(::Type{AdjoinIdentity{T}}) where {T} = true

# Not used in Transducers.jl ATM but it is probably a reasonable thing
# to support (see, e.g., `Base.BottomRF`):
Base.reduce_empty(rf::AdjoinIdentity, T) = Base.reduce_empty(rf.op, T)
Base.reduce_empty(rf::AdjoinIdentity, ::Type{T}) where {T} = Base.reduce_empty(rf.op, T)

end # module

0 comments on commit 13c069c

Please sign in to comment.