Skip to content

Commit 474fbf2

Browse files
committed
fix for 1.6
1 parent a365fe3 commit 474fbf2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/rulesets/Base/broadcast.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
using Base.Broadcast: broadcasted
22

3+
if VERSION < v"1.7"
4+
Base.ndims(::Type{<:AbstractArray{<:Any,N}}) where {N} = N
5+
end
36
BS0 = Broadcast.BroadcastStyle(Float64)
4-
BS1 = Broadcast.BroadcastStyle(Vector)
7+
BS1 = Broadcast.BroadcastStyle(Vector) # without ndims method, error on 1.6
58
BS2 = Broadcast.BroadcastStyle(Matrix)
69

710
BT1 = Broadcast.BroadcastStyle(Tuple)

0 commit comments

Comments
 (0)