Skip to content

Commit b6bf77c

Browse files
wsmosesavik-pal
authored andcommitted
Update basic.jl
1 parent 9e052f1 commit b6bf77c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/basic.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,6 +1224,7 @@ end
12241224
end
12251225

12261226
accum_fn(x, y) = abs2(x) + abs2(y)
1227+
Base.reduce_empty(::typeof(accum_fn), ::Type{T}) where {T} = zero(T)
12271228

12281229
@testset "accumulate" begin
12291230
a = collect(Float32, 1:10) ./ 10

0 commit comments

Comments
 (0)