Skip to content

Commit 148e1c2

Browse files
authored
fix: typo in overlay (#1442)
1 parent be5f0a3 commit 148e1c2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/Overlay.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,10 +171,10 @@ end
171171
end
172172
end
173173

174-
@reactant_overlay @noinline function Base.any(f, x::AbstractArray{T}, dims) where {T}
174+
@reactant_overlay @noinline function Base._any(f, x::AbstractArray{T}, dims) where {T}
175175
if T <: TracedRNumber && T !== Union{}
176176
return TracedRArrayOverrides.overloaded_mapreduce(f, |, x; dims)
177177
else
178-
return Base.inferencebarrier(Base.any)(f, x, dims)
178+
return Base.inferencebarrier(Base._any)(f, x, dims)
179179
end
180180
end

test/basic.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,3 +1371,8 @@ end
13711371
@test contains(hlo1, "chlo.conj")
13721372
@test !contains(hlo2, "chlo")
13731373
end
1374+
1375+
@testset "scalar indexing in any #1434" begin
1376+
xr = Reactant.to_rarray(ones(4, 4))
1377+
@test @jit(any(<(0), xr)) == any(<(0), Array(xr))
1378+
end

0 commit comments

Comments
 (0)