Skip to content

Commit bf663a8

Browse files
authored
Improve inference in hashed_unique (JuliaLang#45764)
1 parent 782458c commit bf663a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/set.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ function _hashed_allunique(C)
458458
x = iterate(C)
459459
if haslength(C) && length(C) > 1000
460460
for i in OneTo(1000)
461-
v, s = x
461+
v, s = something(x)
462462
in!(v, seen) && return false
463463
x = iterate(C, s)
464464
end

0 commit comments

Comments
 (0)