We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_might_return_reduced
The code in
Transducers.jl/src/reduce.jl
Lines 218 to 244 in 958213c
1.8.0:
julia> using Transducers julia> Transducers._might_return_reduced(reducingfunction(ReduceIf(ismissing), +), 0, (0, missing)) true julia> Core.Compiler.return_type(Transducers._reduce_dummy, # simulate the output type of `_reduce` typeof((reducingfunction(ReduceIf(ismissing), +), 0, (0, missing))), ) Reduced{Missing} julia> Transducers._reduce_dummy(reducingfunction(ReduceIf(ismissing), +), 0, (0, missing)) ERROR: MethodError: no method matching halve(::Transducers.SizedReducible{Tuple{Int64, Missing}, Int64}) Closest candidates are: ...
Julia Master realizes this will error and gives us a Union{}
Union{}
julia> using Transducers julia> Core.Compiler.return_type(Transducers._reduce_dummy, # simulate the output type of `_reduce` typeof((reducingfunction(ReduceIf(ismissing), +), 0, (0, missing))), ) Union{}
which makes it so that _might_return_reduced gives false.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The code in
Transducers.jl/src/reduce.jl
Lines 218 to 244 in 958213c
1.8.0:
Julia Master realizes this will error and gives us a
Union{}
which makes it so that
_might_return_reduced
gives false.The text was updated successfully, but these errors were encountered: