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 8
8
9
9
# this covers most conversions and "statically-sized reshapes"
10
10
@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
12
12
@inline convert (:: Type{SA} , sa:: SA ) where {SA<: StaticArray } = sa
13
13
@inline convert (:: Type{SA} , x:: Tuple ) where {SA<: StaticArray } = SA (x) # convert -> constructor. Hopefully no loops...
14
14
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const allowable_ambiguities =
7
7
elseif VERSION < v " 1.2"
8
8
2
9
9
else
10
- 1
10
+ 0
11
11
end
12
12
13
13
@test length (detect_ambiguities (Base, LinearAlgebra, StaticArrays)) <= allowable_ambiguities
You can’t perform that action at this time.
0 commit comments