Skip to content

Commit 705f287

Browse files
committed
Fix method ambiguity with sort!(..., ::NOOPSortAlg)
1 parent 7152d54 commit 705f287

File tree

1 file changed

+1
-1
lines changed
  • src/Experimental/Traversals

1 file changed

+1
-1
lines changed

src/Experimental/Traversals/bfs.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Base:sort!
44
struct NOOPSortAlg <: Base.Sort.Algorithm end
55
const NOOPSort = NOOPSortAlg()
66

7-
sort!(x, ::Integer, ::Integer, ::NOOPSortAlg, ::Base.Sort.Ordering) = x
7+
sort!(x::AbstractVector, ::Integer, ::Integer, ::NOOPSortAlg, ::Base.Sort.Ordering) = x
88

99
struct BFS{T<:Base.Sort.Algorithm} <: TraversalAlgorithm
1010
sort_alg::T

0 commit comments

Comments
 (0)