Skip to content

Commit e1cc619

Browse files
committed
Set the number of allowable ambiguities to 0
1 parent 63fb815 commit e1cc619

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/convert.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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

test/ambiguities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)