Skip to content

Commit 8db7260

Browse files
authored
Remove type piracy
Type piracy of Base.iterate causes issues when loading package extensions.
1 parent 4fc19b0 commit 8db7260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/product.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ end
5555
Base.eltype(space::TupleProduct) = Tuple{map(eltype, subspaces(space))...}
5656

5757
Base.length(space::TupleProduct) = mapreduce(length, *, subspaces(space))
58-
Base.iterate(space, args...) = iterate(Iterators.product(subspaces(space)...), args...)
58+
Base.iterate(space::TupleProduct, args...) = iterate(Iterators.product(subspaces(space)...), args...)
5959

6060
function bounds(s::TupleProduct)
6161
bds = map(bounds, subspaces(s))

0 commit comments

Comments
 (0)