File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 88
99# this covers most conversions and "statically-sized reshapes"
1010@inline convert (:: Type{SA} , sa:: StaticArray ) where {SA<: StaticArray } = SA (Tuple (sa))
11- @inline convert (:: Type{SA} , sa:: StaticArray ) where {SA<: Scalar } = SA ((sa[],))
11+ @inline convert (:: Type{SA} , sa:: StaticArray ) where {SA<: Scalar } = SA ((sa[],)) # disambiguation
1212@inline convert (:: Type{SA} , sa:: SA ) where {SA<: StaticArray } = sa
1313@inline convert (:: Type{SA} , x:: Tuple ) where {SA<: StaticArray } = SA (x) # convert -> constructor. Hopefully no loops...
1414
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const allowable_ambiguities =
77 elseif VERSION < v " 1.2"
88 2
99 else
10- 1
10+ 0
1111 end
1212
1313@test length (detect_ambiguities (Base, LinearAlgebra, StaticArrays)) <= allowable_ambiguities
You can’t perform that action at this time.
0 commit comments