Skip to content

Commit

Permalink
why not both
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko committed Dec 14, 2024
1 parent 3359356 commit 51ec4bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/iterators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1023,10 +1023,12 @@ end
simple_types = (Vector, NTuple, NamedTuple{X, Y} where {X, Y <: NTuple})
@testset "f: $f" for f functions
for V simple_types
@test Core.Compiler.is_foldable(Base.infer_effects(f, Tuple{V}))
@test Core.Compiler.is_foldable(Base.infer_effects(f, Tuple{Type{<:V}}))
for U iterator_types
S = U{<:V}
((U <: Iterators.Zip) || (U <: Iterators.Flatten)) && continue # partially broken
@test Core.Compiler.is_foldable(Base.infer_effects(f, Tuple{S}))
@test Core.Compiler.is_foldable(Base.infer_effects(f, Tuple{Type{<:S}}))
end
end
Expand Down

0 comments on commit 51ec4bc

Please sign in to comment.