Skip to content

Commit e6938a0

Browse files
authored
fix #30124, broadcast regression due to removed pure annotation (#30420)
1 parent 7b2db8e commit e6938a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ BroadcastStyle(a::AbstractArrayStyle, ::Style{Tuple}) = a
137137
BroadcastStyle(::A, ::A) where A<:ArrayStyle = A()
138138
BroadcastStyle(::ArrayStyle, ::ArrayStyle) = Unknown()
139139
BroadcastStyle(::A, ::A) where A<:AbstractArrayStyle = A()
140-
function BroadcastStyle(a::A, b::B) where {A<:AbstractArrayStyle{M},B<:AbstractArrayStyle{N}} where {M,N}
140+
Base.@pure function BroadcastStyle(a::A, b::B) where {A<:AbstractArrayStyle{M},B<:AbstractArrayStyle{N}} where {M,N}
141141
if Base.typename(A) === Base.typename(B)
142142
return A(Val(max(M, N)))
143143
end

0 commit comments

Comments
 (0)